vibrancy fixes

This commit is contained in:
Eugene Pankov
2021-01-09 17:02:01 +01:00
parent bba1eaccbe
commit a8d78ce185
2 changed files with 4 additions and 7 deletions

View File

@@ -91,10 +91,10 @@ export class Window {
}
}
if (process.platform === 'darwin') {
this.window = new BrowserWindow(bwOptions) as GlasstronWindow
} else {
if (process.platform === 'win32') {
this.window = new glasstron.BrowserWindow(bwOptions)
} else {
this.window = new BrowserWindow(bwOptions) as GlasstronWindow
}
this.window.once('ready-to-show', () => {
@@ -155,9 +155,6 @@ export class Window {
} else {
DwmEnableBlurBehindWindow(this.window, enabled)
}
} else if (process.platform === 'linux') {
this.window.setBackgroundColor(enabled ? '#00000000' : '#131d27')
this.window.setBlur(enabled)
} else {
this.window.setVibrancy(enabled ? macOSVibrancyType : null)
}