summaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js9
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,