From d736bdace441ea019eeb511a77c026a72aa33ec8 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 3 Dec 2022 13:15:05 +0100 Subject: [PATCH] fixed #280 - added option to hide tabs in fullscreen mode --- tabby-core/src/components/appRoot.component.pug | 5 ++++- tabby-core/src/configDefaults.yaml | 1 + .../src/components/windowSettingsTab.component.pug | 9 +++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/tabby-core/src/components/appRoot.component.pug b/tabby-core/src/components/appRoot.component.pug index 6f4ad74d..eeb3ff3a 100644 --- a/tabby-core/src/components/appRoot.component.pug +++ b/tabby-core/src/components/appRoot.component.pug @@ -9,7 +9,10 @@ title-bar( [class.tabs-on-top]='config.store.appearance.tabsLocation == "top" || config.store.appearance.tabsLocation == "left"', [class.tabs-on-side]='hasVerticalTabs()', ) - .tab-bar((dblclick)='hostWindow.toggleMaximize()') + .tab-bar( + *ngIf='!hostWindow.isFullscreen || config.store.appearance.tabsInFullscreen', + (dblclick)='hostWindow.toggleMaximize()' + ) .inset.background(*ngIf='hostApp.platform == Platform.macOS \ && !hostWindow.isFullscreen \ && config.store.appearance.frame == "thin" \ diff --git a/tabby-core/src/configDefaults.yaml b/tabby-core/src/configDefaults.yaml index d681646e..7c9bf560 100644 --- a/tabby-core/src/configDefaults.yaml +++ b/tabby-core/src/configDefaults.yaml @@ -9,6 +9,7 @@ appearance: dockAlwaysOnTop: true flexTabs: false tabsLocation: top + tabsInFullscreen: false cycleTabs: true theme: Standard frame: thin diff --git a/tabby-settings/src/components/windowSettingsTab.component.pug b/tabby-settings/src/components/windowSettingsTab.component.pug index e46b0caf..3d4ce111 100644 --- a/tabby-settings/src/components/windowSettingsTab.component.pug +++ b/tabby-settings/src/components/windowSettingsTab.component.pug @@ -277,6 +277,15 @@ h3.mt-4(translate) Tabs ) span(translate) Fixed +.form-line + .header + .title(translate) Show tabs in fullscreen mode + + toggle( + [(ngModel)]='config.store.appearance.tabsInFullscreen', + (ngModelChange)='config.save();', + ) + .form-line .header .title(translate) Hide tab index