mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-08 10:21:53 +00:00
UI tweaks
This commit is contained in:
@@ -10,9 +10,10 @@
|
|||||||
will-change: transform;
|
will-change: transform;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
animation: 0.5s ease-out fadeIn;
|
animation: 0.5s ease-out fadeIn;
|
||||||
|
transition: 0.25s background;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tabs-height: 36px;
|
$tabs-height: 38px;
|
||||||
$tab-border-radius: 4px;
|
$tab-border-radius: 4px;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -56,7 +56,10 @@ export class AppRootComponent {
|
|||||||
@Input() ready = false
|
@Input() ready = false
|
||||||
@Input() leftToolbarButtons: IToolbarButton[]
|
@Input() leftToolbarButtons: IToolbarButton[]
|
||||||
@Input() rightToolbarButtons: IToolbarButton[]
|
@Input() rightToolbarButtons: IToolbarButton[]
|
||||||
@HostBinding('class') hostClass = `platform-${process.platform}`
|
@HostBinding('class.platform-win32') platformClassWindows = process.platform === 'win32'
|
||||||
|
@HostBinding('class.platform-darwin') platformClassMacOS = process.platform === 'darwin'
|
||||||
|
@HostBinding('class.platform-linux') platformClassLinux = process.platform === 'linux'
|
||||||
|
@HostBinding('class.no-tabs') noTabs = true
|
||||||
tabsDragging = false
|
tabsDragging = false
|
||||||
unsortedTabs: BaseTabComponent[] = []
|
unsortedTabs: BaseTabComponent[] = []
|
||||||
updateIcon: SafeHtml
|
updateIcon: SafeHtml
|
||||||
@@ -147,9 +150,12 @@ export class AppRootComponent {
|
|||||||
this.hostApp.getWindow().setProgressBar(-1, { mode: 'none' })
|
this.hostApp.getWindow().setProgressBar(-1, { mode: 'none' })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.noTabs = false
|
||||||
})
|
})
|
||||||
|
|
||||||
this.app.tabClosed$.subscribe(tab => {
|
this.app.tabClosed$.subscribe(tab => {
|
||||||
this.unsortedTabs = this.unsortedTabs.filter(x => x !== tab)
|
this.unsortedTabs = this.unsortedTabs.filter(x => x !== tab)
|
||||||
|
this.noTabs = app.tabs.length === 0
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
$tabs-height: 36px;
|
$tabs-height: 38px;
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@@ -125,6 +125,10 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app-root {
|
app-root {
|
||||||
|
&.no-tabs {
|
||||||
|
background: rgba(0,0,0,.5);
|
||||||
|
}
|
||||||
|
|
||||||
&> .content {
|
&> .content {
|
||||||
.tab-bar {
|
.tab-bar {
|
||||||
.btn-tab-bar {
|
.btn-tab-bar {
|
||||||
|
@@ -15,6 +15,7 @@ export class HTermFrontend extends Frontend {
|
|||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
this.init()
|
this.init()
|
||||||
this.initialized = true
|
this.initialized = true
|
||||||
|
preferenceManager.set('background-color', 'transparent')
|
||||||
this.term.decorate(host)
|
this.term.decorate(host)
|
||||||
this.htermIframe = this.term.scrollPort_.iframe_
|
this.htermIframe = this.term.scrollPort_.iframe_
|
||||||
} else {
|
} else {
|
||||||
|
@@ -8,6 +8,7 @@ a:hover {
|
|||||||
|
|
||||||
x-screen {
|
x-screen {
|
||||||
transition: 0.125s ease background;
|
transition: 0.125s ease background;
|
||||||
|
background: transparent;
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
width: 3px;
|
width: 3px;
|
||||||
|
Reference in New Issue
Block a user