diff --git a/packages/desktop/src/main.ts b/packages/desktop/src/main.ts index 9c2d78a5..aa04ae10 100644 --- a/packages/desktop/src/main.ts +++ b/packages/desktop/src/main.ts @@ -253,12 +253,20 @@ function loadTrayIcon(): Electron.NativeImage { icon.setTemplateImage(true); return icon; } + } else if (process.platform === 'win32') { + // Windows: multi-size .ico — Windows + Electron auto-pick best size for current DPI. + const icoPath = path.join(resourcesDir, 'tray-icon.ico'); + const icon = nativeImage.createFromPath(icoPath); + if (!icon.isEmpty()) { + return icon; + } } else { - // Windows/Linux: colored icon + // Linux: single 22x22 PNG (AppIndicator / StatusNotifier convention). + // No runtime resize — the source is already at correct tray size. const iconPath = path.join(resourcesDir, 'tray-icon.png'); const icon = nativeImage.createFromPath(iconPath); if (!icon.isEmpty()) { - return icon.resize({ width: 16, height: 16 }); + return icon; } } } catch {