mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
vibrancy fixes
This commit is contained in:
parent
bba1eaccbe
commit
a8d78ce185
2 changed files with 4 additions and 7 deletions
|
@ -91,10 +91,10 @@ export class Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'win32') {
|
||||||
this.window = new BrowserWindow(bwOptions) as GlasstronWindow
|
|
||||||
} else {
|
|
||||||
this.window = new glasstron.BrowserWindow(bwOptions)
|
this.window = new glasstron.BrowserWindow(bwOptions)
|
||||||
|
} else {
|
||||||
|
this.window = new BrowserWindow(bwOptions) as GlasstronWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
this.window.once('ready-to-show', () => {
|
this.window.once('ready-to-show', () => {
|
||||||
|
@ -155,9 +155,6 @@ export class Window {
|
||||||
} else {
|
} else {
|
||||||
DwmEnableBlurBehindWindow(this.window, enabled)
|
DwmEnableBlurBehindWindow(this.window, enabled)
|
||||||
}
|
}
|
||||||
} else if (process.platform === 'linux') {
|
|
||||||
this.window.setBackgroundColor(enabled ? '#00000000' : '#131d27')
|
|
||||||
this.window.setBlur(enabled)
|
|
||||||
} else {
|
} else {
|
||||||
this.window.setVibrancy(enabled ? macOSVibrancyType : null)
|
this.window.setVibrancy(enabled ? macOSVibrancyType : null)
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ ngb-tabset.vertical(type='pills', [activeId]='activeTab')
|
||||||
)
|
)
|
||||||
| Right
|
| Right
|
||||||
|
|
||||||
.form-line
|
.form-line(*ngIf='hostApp.platform !== Platform.Linux')
|
||||||
.header
|
.header
|
||||||
.title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background
|
.title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background
|
||||||
.title(*ngIf='hostApp.platform === Platform.macOS') Vibrancy
|
.title(*ngIf='hostApp.platform === Platform.macOS') Vibrancy
|
||||||
|
|
Loading…
Reference in a new issue