diff options
author | vantezzen <hello@vantezzen.io> | 2019-10-17 16:22:11 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-10-17 16:22:11 +0200 |
commit | 942466eb686c480133e1b0b8b9a2b975098b5bc4 (patch) | |
tree | 297a71efa4051949a4f2c411262558954c8c7d3a /src/index.js | |
parent | Merge pull request #121 from getferdi/l10n_develop (diff) | |
download | ferdium-app-942466eb686c480133e1b0b8b9a2b975098b5bc4.tar.gz ferdium-app-942466eb686c480133e1b0b8b9a2b975098b5bc4.tar.zst ferdium-app-942466eb686c480133e1b0b8b9a2b975098b5bc4.zip |
Implement #120v5.4.0-beta.1
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 2ee404c0b..4dcabb599 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -144,6 +144,13 @@ const createWindow = () => { | |||
144 | } | 144 | } |
145 | 145 | ||
146 | // Create the browser window. | 146 | // Create the browser window. |
147 | let backgroundColor = '#7367F0'; | ||
148 | if (settings.get('accentColor') !== '#7367f0') { | ||
149 | backgroundColor = settings.get('accentColor'); | ||
150 | } else if (settings.get('darkMode')) { | ||
151 | backgroundColor = '#1E1E1E'; | ||
152 | } | ||
153 | |||
147 | mainWindow = new BrowserWindow({ | 154 | mainWindow = new BrowserWindow({ |
148 | x: posX, | 155 | x: posX, |
149 | y: posY, | 156 | y: posY, |
@@ -153,7 +160,7 @@ const createWindow = () => { | |||
153 | minHeight: 500, | 160 | minHeight: 500, |
154 | titleBarStyle: isMac ? 'hidden' : '', | 161 | titleBarStyle: isMac ? 'hidden' : '', |
155 | frame: isLinux, | 162 | frame: isLinux, |
156 | backgroundColor: !settings.get('darkMode') ? '#7367F0' : '#1E1E1E', | 163 | backgroundColor, |
157 | webPreferences: { | 164 | webPreferences: { |
158 | nodeIntegration: true, | 165 | nodeIntegration: true, |
159 | webviewTag: true, | 166 | webviewTag: true, |