mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Make Windows tray icon look better
This commit is contained in:
parent
147f361341
commit
f9fd95ac6f
1 changed files with 2 additions and 2 deletions
|
@ -156,8 +156,8 @@ async function doAfterDefiningTheWindow() {
|
||||||
let trayPath = nativeImage.createFromPath(path.join(app.getPath("temp"), "/", "tray.png"));
|
let trayPath = nativeImage.createFromPath(path.join(app.getPath("temp"), "/", "tray.png"));
|
||||||
if (process.platform === "darwin" && trayPath.getSize().height > 22)
|
if (process.platform === "darwin" && trayPath.getSize().height > 22)
|
||||||
trayPath = trayPath.resize({height: 22});
|
trayPath = trayPath.resize({height: 22});
|
||||||
if (process.platform === "win32" && trayPath.getSize().height > 64)
|
if (process.platform === "win32" && trayPath.getSize().height > 32)
|
||||||
trayPath = trayPath.resize({height: 64});
|
trayPath = trayPath.resize({height: 32});
|
||||||
tray.setImage(trayPath);
|
tray.setImage(trayPath);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue