diff options
Diffstat (limited to 'src/lib/Tray.js')
-rw-r--r-- | src/lib/Tray.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js index c6d9db004..36f0de66d 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js | |||
@@ -2,6 +2,7 @@ import { | |||
2 | app, Menu, nativeImage, nativeTheme, systemPreferences, Tray, ipcMain, | 2 | app, Menu, nativeImage, nativeTheme, systemPreferences, Tray, ipcMain, |
3 | } from 'electron'; | 3 | } from 'electron'; |
4 | import path from 'path'; | 4 | import path from 'path'; |
5 | import macosVersion from 'macos-version'; | ||
5 | import { | 6 | import { |
6 | isMac, | 7 | isMac, |
7 | isWindows, | 8 | isWindows, |
@@ -173,7 +174,7 @@ export default class TrayIcon { | |||
173 | _getAsset(type, asset) { | 174 | _getAsset(type, asset) { |
174 | let { platform } = process; | 175 | let { platform } = process; |
175 | 176 | ||
176 | if (platform === 'darwin' && nativeTheme.shouldUseDarkColors) { | 177 | if (platform === 'darwin' && (nativeTheme.shouldUseDarkColors || macosVersion.isGreaterThanOrEqualTo('11'))) { |
177 | platform = `${platform}-dark`; | 178 | platform = `${platform}-dark`; |
178 | } | 179 | } |
179 | 180 | ||