mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Add Windows icon scaling
This commit is contained in:
parent
e3f750aecf
commit
6966219255
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue