Add Windows icon scaling

This commit is contained in:
smartfridge 2022-12-13 20:21:16 +01:00
parent e3f750aecf
commit 6966219255
1 changed files with 2 additions and 0 deletions

View File

@ -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);
});
}