enable transparency when vibrancy is enabled on Windows

This commit is contained in:
Eugene Pankov
2018-08-24 23:16:09 +02:00
parent 594597e93d
commit a10c6e6251
2 changed files with 6 additions and 2 deletions

View File

@@ -233,6 +233,10 @@ start = () => {
}
}
if (process.platform == 'win32' && (configData.appearance || {}).vibrancy) {
options.transparent = true
}
if (process.platform == 'linux') {
options.backgroundColor = '#131d27'
}
@@ -243,7 +247,7 @@ start = () => {
app.window.once('ready-to-show', () => {
if (process.platform == 'darwin') {
app.window.setVibrancy('dark')
} else if (process.platform == 'windows') {
} else if (process.platform == 'win32' && (configData.appearance || {}).vibrancy) {
setWindowVibrancy(true)
}
app.window.show()