[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>
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 502 B |
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 836 B |
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 898 B |
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 836 B After Width: | Height: | Size: 580 B |
Before Width: | Height: | Size: 493 B After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 737 B |
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 898 B After Width: | Height: | Size: 749 B |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
@ -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) {
|
||||
|
|