From f9fd95ac6f23a7a7fd83193f3b8143a22c8568ed Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Tue, 13 Dec 2022 20:30:00 +0100 Subject: [PATCH] Make Windows tray icon look better --- src/window.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.ts b/src/window.ts index d267dc1..2ecda9c 100644 --- a/src/window.ts +++ b/src/window.ts @@ -156,8 +156,8 @@ async function doAfterDefiningTheWindow() { let trayPath = nativeImage.createFromPath(path.join(app.getPath("temp"), "/", "tray.png")); if (process.platform === "darwin" && trayPath.getSize().height > 22) trayPath = trayPath.resize({height: 22}); - if (process.platform === "win32" && trayPath.getSize().height > 64) - trayPath = trayPath.resize({height: 64}); + if (process.platform === "win32" && trayPath.getSize().height > 32) + trayPath = trayPath.resize({height: 32}); tray.setImage(trayPath); }); }