diff options
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js index e6bd83e06..b6a052de7 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -1,6 +1,8 @@ | |||
1 | import electron from 'electron'; | 1 | import electron from 'electron'; |
2 | import isDevMode from 'electron-is-dev'; | ||
2 | import ms from 'ms'; | 3 | import ms from 'ms'; |
3 | import path from 'path'; | 4 | import path from 'path'; |
5 | import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; | ||
4 | import { asarPath } from './helpers/asar-helpers'; | 6 | import { asarPath } from './helpers/asar-helpers'; |
5 | 7 | ||
6 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; | 8 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; |
@@ -127,7 +129,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
127 | showServiceNavigationBar: false, | 129 | showServiceNavigationBar: false, |
128 | universalDarkMode: true, | 130 | universalDarkMode: true, |
129 | adaptableDarkMode: true, | 131 | adaptableDarkMode: true, |
130 | accentColor: '#7266F0', | 132 | accentColor: DEFAULT_ACCENT_COLOR, |
131 | serviceRibbonWidth: 68, | 133 | serviceRibbonWidth: 68, |
132 | iconSize: iconSizeBias, | 134 | iconSize: iconSizeBias, |
133 | sentry: false, | 135 | sentry: false, |
@@ -184,6 +186,10 @@ if (process.env.FERDI_APPDATA_DIR != null) { | |||
184 | app.setPath('userData', path.join(app.getPath('appData'), app.name)); | 186 | app.setPath('userData', path.join(app.getPath('appData'), app.name)); |
185 | } | 187 | } |
186 | 188 | ||
189 | if (isDevMode) { | ||
190 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}Dev`)); | ||
191 | } | ||
192 | |||
187 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); | 193 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); |
188 | 194 | ||
189 | // Replacing app.asar is not beautiful but unfortunately necessary | 195 | // Replacing app.asar is not beautiful but unfortunately necessary |