fixed #280 - added option to hide tabs in fullscreen mode

This commit is contained in:
Eugene Pankov 2022-12-03 13:15:05 +01:00
parent 78b17d3980
commit d736bdace4
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
3 changed files with 14 additions and 1 deletions

View File

@ -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" \

View File

@ -9,6 +9,7 @@ appearance:
dockAlwaysOnTop: true
flexTabs: false
tabsLocation: top
tabsInFullscreen: false
cycleTabs: true
theme: Standard
frame: thin

View File

@ -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