[MM-40233] Swap names for dark/light tray icons on Linux and Windows (#2180)

* Swap names for dark/light tray icons for linux and windows.

* Swap icon tray themes when system default is used

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Tasos Boulis
2022-07-06 16:47:09 +03:00
committed by GitHub
parent ae1faeae2a
commit 22c97591d5
19 changed files with 1 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ let lastMessage = app.name;
/* istanbul ignore next */
export function refreshTrayImages(trayIconTheme: string) {
const systemTheme = nativeTheme.shouldUseDarkColors ? 'dark' : 'light';
const systemTheme = nativeTheme.shouldUseDarkColors ? 'light' : 'dark';
const winTheme = trayIconTheme === 'use_system' ? systemTheme : trayIconTheme;
switch (process.platform) {