diff options
author | 2018-12-02 21:19:30 +0100 | |
---|---|---|
committer | 2018-12-02 21:19:30 +0100 | |
commit | ee5090959b1bff33f8e70b6f440ccf5152bc563b (patch) | |
tree | 8fc00aca8da1b61b913d5eb983142dc9bb803225 /src/config.js | |
parent | Automatic i18n update (i18n.meetfranz.com) (diff) | |
download | ferdium-app-ee5090959b1bff33f8e70b6f440ccf5152bc563b.tar.gz ferdium-app-ee5090959b1bff33f8e70b6f440ccf5152bc563b.tar.zst ferdium-app-ee5090959b1bff33f8e70b6f440ccf5152bc563b.zip |
Fix set initial state for dark mode
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js index 08dbb85f3..c612d1e2b 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -2,6 +2,7 @@ import electron from 'electron'; | |||
2 | import path from 'path'; | 2 | import path from 'path'; |
3 | 3 | ||
4 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; | 4 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; |
5 | const systemPreferences = process.type === 'renderer' ? electron.remote.systemPreferences : electron.systemPreferences; | ||
5 | 6 | ||
6 | export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks | 7 | export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks |
7 | export const LOCAL_API = 'http://localhost:3000'; | 8 | export const LOCAL_API = 'http://localhost:3000'; |
@@ -18,7 +19,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
18 | showMessageBadgeWhenMuted: true, | 19 | showMessageBadgeWhenMuted: true, |
19 | enableSpellchecking: true, | 20 | enableSpellchecking: true, |
20 | spellcheckerLanguage: 'en-us', | 21 | spellcheckerLanguage: 'en-us', |
21 | darkMode: false, | 22 | darkMode: process.platform === 'darwin' ? systemPreferences.isDarkMode() : false, // We can't use refs from `./environment` at this time |
22 | locale: '', | 23 | locale: '', |
23 | fallbackLocale: 'en-US', | 24 | fallbackLocale: 'en-US', |
24 | beta: false, | 25 | beta: false, |