diff --git a/build/tray/trayTemplate.png b/build/tray/trayTemplate.png new file mode 100644 index 0000000000..73c7346d33 Binary files /dev/null and b/build/tray/trayTemplate.png differ diff --git a/build/tray/trayTemplate@2x.png b/build/tray/trayTemplate@2x.png new file mode 100644 index 0000000000..71206802ac Binary files /dev/null and b/build/tray/trayTemplate@2x.png differ diff --git a/build/tray/trayTemplate@3x.png b/build/tray/trayTemplate@3x.png new file mode 100644 index 0000000000..a293ba7d32 Binary files /dev/null and b/build/tray/trayTemplate@3x.png differ diff --git a/src/main/tray.ts b/src/main/tray.ts index 2c5ba736f2..e5a7b9c537 100644 --- a/src/main/tray.ts +++ b/src/main/tray.ts @@ -16,14 +16,11 @@ import { exitApp } from "./exit-app"; // note: instance of Tray should be saved somewhere, otherwise it disappears export let tray: Tray; -// refresh icon when MacOS dark/light theme has changed -nativeTheme?.on("updated", () => tray?.setImage(getTrayIcon())); - -export function getTrayIcon(isDark = nativeTheme.shouldUseDarkColors): string { +export function getTrayIcon(): string { return path.resolve( __static, isDevelopment ? "../build/tray" : "icons", // copied within electron-builder extras - `tray_icon${isDark ? "_dark" : ""}.png` + "trayTemplate.png" ); }