diff options
author | 2019-11-28 11:23:10 +0700 | |
---|---|---|
committer | 2019-11-28 11:23:10 +0700 | |
commit | eff719b87c60097342d393922048662c32255d88 (patch) | |
tree | 1880039ba4002f34551c812bb356e46f537c57b8 /src/lib/Tray.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/lib/Tray.js')
-rw-r--r-- | src/lib/Tray.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js index 90974de3f..c0d936599 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js | |||
@@ -1,5 +1,5 @@ | |||
1 | import { | 1 | import { |
2 | app, Tray, Menu, systemPreferences, nativeImage, | 2 | app, Tray, Menu, systemPreferences, nativeTheme, nativeImage, |
3 | } from 'electron'; | 3 | } from 'electron'; |
4 | import path from 'path'; | 4 | import path from 'path'; |
5 | 5 | ||
@@ -86,7 +86,7 @@ export default class TrayIcon { | |||
86 | _getAsset(type, asset) { | 86 | _getAsset(type, asset) { |
87 | let { platform } = process; | 87 | let { platform } = process; |
88 | 88 | ||
89 | if (platform === 'darwin' && systemPreferences.isDarkMode()) { | 89 | if (platform === 'darwin' && nativeTheme.shouldUseDarkColors) { |
90 | platform = `${platform}-dark`; | 90 | platform = `${platform}-dark`; |
91 | } | 91 | } |
92 | 92 | ||