aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Tray.js3
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';
4import path from 'path'; 4import path from 'path';
5import macosVersion from 'macos-version';
5import { 6import {
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