diff options
author | Amine Mouafik <amine@mouafik.fr> | 2019-11-28 11:23:10 +0700 |
---|---|---|
committer | Amine Mouafik <amine@mouafik.fr> | 2019-11-28 11:23:10 +0700 |
commit | eff719b87c60097342d393922048662c32255d88 (patch) | |
tree | 1880039ba4002f34551c812bb356e46f537c57b8 /src/config.js | |
parent | 5.4.1-beta.1 (diff) | |
download | ferdium-app-eff719b87c60097342d393922048662c32255d88.tar.gz ferdium-app-eff719b87c60097342d393922048662c32255d88.tar.zst ferdium-app-eff719b87c60097342d393922048662c32255d88.zip |
Better handling of (adaptable/universal) dark mode
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.js b/src/config.js index 5c184b65a..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 | ||
@@ -53,7 +53,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
53 | showMessageBadgeWhenMuted: true, | 53 | showMessageBadgeWhenMuted: true, |
54 | enableSpellchecking: true, | 54 | enableSpellchecking: true, |
55 | spellcheckerLanguage: 'en-us', | 55 | spellcheckerLanguage: 'en-us', |
56 | 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 |
57 | locale: '', | 57 | locale: '', |
58 | fallbackLocale: 'en-US', | 58 | fallbackLocale: 'en-US', |
59 | beta: false, | 59 | beta: false, |