From 372f71bcd955e798ef0bec07bb97db35fb454de6 Mon Sep 17 00:00:00 2001 From: Molunerfinn Date: Mon, 25 Jun 2018 19:27:41 +0800 Subject: [PATCH] Fixed: not darwin platform setting window bug --- src/main/index.js | 3 ++- src/main/utils/img2base64.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 0d26552..2ca3c79 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -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) diff --git a/src/main/utils/img2base64.js b/src/main/utils/img2base64.js index 077e3c4..3ffcfe7 100644 --- a/src/main/utils/img2base64.js +++ b/src/main/utils/img2base64.js @@ -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)