Skip to content

Commit

Permalink
Add patch hiding custom titlebar when set to compact mode
Browse files Browse the repository at this point in the history
  • Loading branch information
EggAllocationService committed Aug 11, 2022
1 parent 0787564 commit 25911be
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patches/hide-titlebar-when-compact.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/src/vs/workbench/browser/layout.ts b/src/vs/workbench/browser/layout.ts
index 9151c945a6c..88393fffc8d 100644
--- a/src/vs/workbench/browser/layout.ts
+++ b/src/vs/workbench/browser/layout.ts
@@ -981,6 +981,10 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi

private shouldShowTitleBar(): boolean {

+ if (this.configurationService.getValue<string>("window.menuBarVisibility") === "compact") {
+ return false
+ }
+
// Using the native title bar, don't ever show the custom one
if (getTitleBarStyle(this.configurationService) === 'native') {
return false;

0 comments on commit 25911be

Please sign in to comment.