diff options
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 | ||