Skip to content

Commit

Permalink
adjust title bar appearance in web (#165076)
Browse files Browse the repository at this point in the history
refs VS Code for the Web: title area shows up in pre-existing sessions #161948
  • Loading branch information
sbatten authored Nov 8, 2022
1 parent c9ce188 commit cc0341b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/vs/workbench/browser/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,11 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
return true;
}

// with the command center enabled, we should always show
if (this.configurationService.getValue<boolean>('window.commandCenter')) {
return true;
}

// if WCO is visible, we have to show the title bar
if (isWCOVisible()) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@
flex-wrap: nowrap;
}

.monaco-workbench.web .part.titlebar>.titlebar-container>.menubar {
margin-left: 4px;
}

.monaco-workbench .part.titlebar>.titlebar-container.counter-zoom > .menubar .menubar-menu-button > .menubar-menu-items-holder.monaco-menu-container {
zoom: var(--zoom-factor);
}
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/titlebar/titlebarPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class TitlebarPart extends Part implements ITitleService {
this.dragRegion = prepend(this.rootContainer, $('div.titlebar-drag-region'));

// App Icon (Native Windows/Linux and Web)
if (!isMacintosh || isWeb) {
if (!isMacintosh && !isWeb) {
this.appIcon = prepend(this.rootContainer, $('a.window-appicon'));

// Web-only home indicator and menu
Expand Down

0 comments on commit cc0341b

Please sign in to comment.