Skip to content

Commit 1693351

Browse files
authored
fix(tamagotchi): Windows tray icon rendering (#735)
1 parent 51f7f7c commit 1693351

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/stage-tamagotchi/src/main/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ function setupTray(params: {
5858
captionWindow: ReturnType<typeof setupCaptionWindowManager>
5959
}): void {
6060
once(() => {
61-
const appTray = new Tray(nativeImage.createFromPath(macOSTrayIcon).resize({ width: 16 }))
61+
const trayImage = nativeImage.createFromPath(isMacOS ? macOSTrayIcon : icon).resize({ width: 16 })
62+
trayImage.setTemplateImage(isMacOS)
63+
const appTray = new Tray(trayImage)
6264
onAppBeforeQuit(() => appTray.destroy())
6365

6466
const contextMenu = Menu.buildFromTemplate([

0 commit comments

Comments
 (0)