diff options
author | Bennett <hello@vantezzen.io> | 2020-01-31 17:24:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 17:24:30 +0100 |
commit | 9277d42ee8fd6d9e3eccf948f71c8688f726784e (patch) | |
tree | 6f167ea9eb2ed50a079596048993a79c7aeb9447 /src/lib/Tray.js | |
parent | Update (diff) | |
parent | Fix lint (diff) | |
download | ferdium-app-9277d42ee8fd6d9e3eccf948f71c8688f726784e.tar.gz ferdium-app-9277d42ee8fd6d9e3eccf948f71c8688f726784e.tar.zst ferdium-app-9277d42ee8fd6d9e3eccf948f71c8688f726784e.zip |
Merge branch 'develop' into start-in-tray
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 | ||