From 69662192556c17107d19b22b02d38e238b2d75b3 Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Tue, 13 Dec 2022 20:21:16 +0100 Subject: [PATCH] Add Windows icon scaling --- src/window.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/window.ts b/src/window.ts index a847bd7..b9cda90 100644 --- a/src/window.ts +++ b/src/window.ts @@ -156,6 +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 > 22) + trayPath = trayPath.resize({height: 64}); tray.setImage(trayPath); }); }