Make Windows tray icon look better

This commit is contained in:
smartfridge 2022-12-13 20:30:00 +01:00
parent 147f361341
commit f9fd95ac6f

View file

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