Fixed: not darwin platform setting window bug

This commit is contained in:
Molunerfinn 2018-06-25 19:27:41 +08:00
parent 415bdd31f3
commit 372f71bcd9
2 changed files with 4 additions and 2 deletions

View File

@ -203,10 +203,11 @@ const createSettingWindow = () => {
backgroundThrottling: false
}
}
if (process.platform === 'win32') {
if (process.platform !== 'darwin') {
options.show = true
options.frame = false
options.backgroundColor = '#3f3c37'
options.transparent = false
}
settingWindow = new BrowserWindow(options)

View File

@ -19,10 +19,11 @@ const createRenameWindow = () => {
}
}
if (process.platform === 'win32') {
if (process.platform !== 'darwin') {
options.show = true
options.backgroundColor = '#3f3c37'
options.autoHideMenuBar = true
options.transparent = false
}
const window = new BrowserWindow(options)