mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 17:16:03 +00:00
fullscreen mode (fixes #283)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
title-bar(
|
title-bar(
|
||||||
*ngIf='config.store.appearance.frame == "full" && config.store.appearance.dock == "off"',
|
*ngIf='!hostApp.getWindow().isFullScreen() && config.store.appearance.frame == "full" && config.store.appearance.dock == "off"',
|
||||||
[class.inset]='hostApp.platform == Platform.macOS'
|
[class.inset]='hostApp.platform == Platform.macOS'
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -7,6 +7,7 @@ title-bar(
|
|||||||
[class.tabs-on-top]='config.store.appearance.tabsLocation == "top"'
|
[class.tabs-on-top]='config.store.appearance.tabsLocation == "top"'
|
||||||
)
|
)
|
||||||
.tab-bar(
|
.tab-bar(
|
||||||
|
*ngIf='!hostApp.getWindow().isFullScreen()',
|
||||||
[class.inset]='hostApp.platform == Platform.macOS && config.store.appearance.frame == "thin" && config.store.appearance.tabsLocation == "top"'
|
[class.inset]='hostApp.platform == Platform.macOS && config.store.appearance.frame == "thin" && config.store.appearance.tabsLocation == "top"'
|
||||||
)
|
)
|
||||||
.tabs
|
.tabs
|
||||||
|
@@ -97,6 +97,9 @@ export class AppRootComponent {
|
|||||||
this.app.previousTab()
|
this.app.previousTab()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (hotkey === 'toggle-fullscreen') {
|
||||||
|
this.hostApp.toggleFullscreen()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.docking.dock()
|
this.docking.dock()
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
hotkeys:
|
hotkeys:
|
||||||
toggle-window:
|
toggle-window:
|
||||||
- 'Ctrl+Space'
|
- 'Ctrl+Space'
|
||||||
|
toggle-fullscreen:
|
||||||
|
- 'F11'
|
||||||
close-tab:
|
close-tab:
|
||||||
- 'Ctrl-Shift-W'
|
- 'Ctrl-Shift-W'
|
||||||
- ['Ctrl-A', 'K']
|
- ['Ctrl-A', 'K']
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
hotkeys:
|
hotkeys:
|
||||||
toggle-window:
|
toggle-window:
|
||||||
- 'Ctrl+Space'
|
- 'Ctrl+Space'
|
||||||
|
toggle-fullscreen:
|
||||||
|
- 'Ctrl+⌘+F'
|
||||||
close-tab:
|
close-tab:
|
||||||
- '⌘-W'
|
- '⌘-W'
|
||||||
toggle-last-tab: []
|
toggle-last-tab: []
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
hotkeys:
|
hotkeys:
|
||||||
toggle-window:
|
toggle-window:
|
||||||
- 'Ctrl+Space'
|
- 'Ctrl+Space'
|
||||||
|
toggle-fullscreen:
|
||||||
|
- 'F11'
|
||||||
close-tab:
|
close-tab:
|
||||||
- 'Ctrl-Shift-W'
|
- 'Ctrl-Shift-W'
|
||||||
- ['Ctrl-A', 'K']
|
- ['Ctrl-A', 'K']
|
||||||
|
@@ -73,6 +73,11 @@ export class HostAppService {
|
|||||||
return this.electron.app.getPath(type)
|
return this.electron.app.getPath(type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toggleFullscreen () {
|
||||||
|
let window = this.getWindow()
|
||||||
|
window.setFullScreen(!window.isFullScreen())
|
||||||
|
}
|
||||||
|
|
||||||
openDevTools () {
|
openDevTools () {
|
||||||
this.getWindow().webContents.openDevTools({ mode: 'undocked' })
|
this.getWindow().webContents.openDevTools({ mode: 'undocked' })
|
||||||
}
|
}
|
||||||
|
@@ -178,6 +178,10 @@ export class AppHotkeyProvider extends HotkeyProvider {
|
|||||||
id: 'toggle-window',
|
id: 'toggle-window',
|
||||||
name: 'Toggle terminal window',
|
name: 'Toggle terminal window',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'toggle-fullscreen',
|
||||||
|
name: 'Toggle fullscreen mode',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'close-tab',
|
id: 'close-tab',
|
||||||
name: 'Close tab',
|
name: 'Close tab',
|
||||||
|
Reference in New Issue
Block a user