Update window.ts

This commit is contained in:
Eugene Pankov
2019-10-26 21:11:27 +02:00
parent ab55650be8
commit 31ecf46f12

View File

@@ -49,7 +49,7 @@ export class Window {
}, },
frame: false, frame: false,
show: false, show: false,
backgroundColor: '#00000000' backgroundColor: '#00000000',
} }
if (this.windowBounds) { if (this.windowBounds) {
@@ -80,7 +80,7 @@ export class Window {
this.window = new BrowserWindow(bwOptions) this.window = new BrowserWindow(bwOptions)
this.window.once('ready-to-show', () => { this.window.once('ready-to-show', () => {
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
this.window.setVibrancy('dark') this.window.setVibrancy('window')
} else if (process.platform === 'win32' && (configData.appearance || {}).vibrancy) { } else if (process.platform === 'win32' && (configData.appearance || {}).vibrancy) {
this.setVibrancy(true) this.setVibrancy(true)
} }