diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Tray.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js index 63382483e..549034e8d 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js | |||
@@ -232,7 +232,7 @@ export default class TrayIcon { | |||
232 | platform = `${platform}-dark`; | 232 | platform = `${platform}-dark`; |
233 | } | 233 | } |
234 | 234 | ||
235 | return nativeImage.createFromPath( | 235 | const trayImg = nativeImage.createFromPath( |
236 | join( | 236 | join( |
237 | __dirname, | 237 | __dirname, |
238 | '..', | 238 | '..', |
@@ -243,5 +243,11 @@ export default class TrayIcon { | |||
243 | `${asset}.${FILE_EXTENSION}`, | 243 | `${asset}.${FILE_EXTENSION}`, |
244 | ), | 244 | ), |
245 | ); | 245 | ); |
246 | |||
247 | if (isMac && macosVersion.isGreaterThanOrEqualTo('11')) { | ||
248 | trayImg.setTemplateImage(true); | ||
249 | } | ||
250 | |||
251 | return trayImg; | ||
246 | } | 252 | } |
247 | } | 253 | } |