diff options
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.js b/src/config.js index bd67aee6b..57ae2aae1 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -6,7 +6,7 @@ import ms from 'ms'; | |||
6 | import { asarPath } from './helpers/asar-helpers'; | 6 | import { asarPath } from './helpers/asar-helpers'; |
7 | 7 | ||
8 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; | 8 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; |
9 | const systemPreferences = process.type === 'renderer' ? electron.remote.systemPreferences : electron.systemPreferences; | 9 | const nativeTheme = process.type === 'renderer' ? electron.remote.nativeTheme : electron.nativeTheme; |
10 | 10 | ||
11 | export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks | 11 | export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks |
12 | 12 | ||
@@ -31,7 +31,6 @@ export const DEVELOPMENT_TODOS_FRONTEND_URL = 'https://development--franz-todos. | |||
31 | 31 | ||
32 | export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; | 32 | export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; |
33 | 33 | ||
34 | export const DEFAULT_LOCK_PASSWORD = 'ferdi'; | ||
35 | export const KEEP_WS_LOADED_USID = '0a0aa000-0a0a-49a0-a000-a0a0a0a0a0a0'; | 34 | export const KEEP_WS_LOADED_USID = '0a0aa000-0a0a-49a0-a000-a0a0a0a0a0a0'; |
36 | 35 | ||
37 | export const HIBERNATION_STRATEGIES = { | 36 | export const HIBERNATION_STRATEGIES = { |
@@ -54,7 +53,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
54 | showMessageBadgeWhenMuted: true, | 53 | showMessageBadgeWhenMuted: true, |
55 | enableSpellchecking: true, | 54 | enableSpellchecking: true, |
56 | spellcheckerLanguage: 'en-us', | 55 | spellcheckerLanguage: 'en-us', |
57 | darkMode: process.platform === 'darwin' ? systemPreferences.isDarkMode() : false, // We can't use refs from `./environment` at this time | 56 | darkMode: process.platform === 'darwin' ? nativeTheme.shouldUseDarkColors : false, // We can't use refs from `./environment` at this time |
58 | locale: '', | 57 | locale: '', |
59 | fallbackLocale: 'en-US', | 58 | fallbackLocale: 'en-US', |
60 | beta: false, | 59 | beta: false, |
@@ -77,6 +76,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
77 | noUpdates: false, | 76 | noUpdates: false, |
78 | showServiceNavigationBar: false, | 77 | showServiceNavigationBar: false, |
79 | universalDarkMode: true, | 78 | universalDarkMode: true, |
79 | adaptableDarkMode: true, | ||
80 | accentColor: '#7367f0', | 80 | accentColor: '#7367f0', |
81 | }; | 81 | }; |
82 | 82 | ||