diff options
author | 2019-11-28 11:23:10 +0700 | |
---|---|---|
committer | 2019-11-28 11:23:10 +0700 | |
commit | eff719b87c60097342d393922048662c32255d88 (patch) | |
tree | 1880039ba4002f34551c812bb356e46f537c57b8 /src/stores/AppStore.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/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 0756a05eb..36e6efd4f 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -27,7 +27,7 @@ import { sleep } from '../helpers/async-helpers'; | |||
27 | const debug = require('debug')('Ferdi:AppStore'); | 27 | const debug = require('debug')('Ferdi:AppStore'); |
28 | 28 | ||
29 | const { | 29 | const { |
30 | app, systemPreferences, screen, powerMonitor, | 30 | app, nativeTheme, screen, powerMonitor, |
31 | } = remote; | 31 | } = remote; |
32 | 32 | ||
33 | const mainWindow = remote.getCurrentWindow(); | 33 | const mainWindow = remote.getCurrentWindow(); |
@@ -185,7 +185,7 @@ export default class AppStore extends Store { | |||
185 | this._healthCheck(); | 185 | this._healthCheck(); |
186 | }, 1000); | 186 | }, 1000); |
187 | 187 | ||
188 | this.isSystemDarkModeEnabled = systemPreferences.isDarkMode(); | 188 | this.isSystemDarkModeEnabled = nativeTheme.shouldUseDarkColors; |
189 | 189 | ||
190 | onVisibilityChange((isVisible) => { | 190 | onVisibilityChange((isVisible) => { |
191 | this.isFocused = isVisible; | 191 | this.isFocused = isVisible; |