style: Updated icons: separated tray, app and installer icons.

Thanks @Sylvie_Em#2700 @clebbington.
This commit is contained in:
Quentin “Storm1er” Decaunes 2020-03-16 09:00:37 +01:00
parent 769ebc9da1
commit 4bbd770ffd
8 changed files with 12 additions and 5 deletions

View File

@ -106,13 +106,13 @@
"build": {
"appId": "ryzen-team.app.ryzen-controller",
"productName": "Ryzen Controller",
"icon": "./build/icon.ico",
"icon": "./build/icons/app.ico",
"asarUnpack": [
"**/build/bin/*"
],
"linux": {
"category": "Utility",
"icon": "./build/icon.png",
"icon": "./build/icons/612x612.png",
"target": [
{
"target": "deb"
@ -123,6 +123,7 @@
]
},
"nsis": {
"installerIcon": "./build/icons/installer.ico",
"oneClick": false,
"perMachine": true,
"allowToChangeInstallationDirectory": true

View File

@ -23,10 +23,16 @@ const currentSettings = () => {
const createWindow = () => {
let appIcon = "";
let trayIcon = "";
if (require("os").platform() === "win32") {
appIcon = __dirname + "/icon.ico";
appIcon = __dirname + "/icons/app_icon.ico";
} else {
appIcon = __dirname + "/icon.png";
appIcon = __dirname + "/icons/256x256.png";
}
if (require("os").platform() === "win32") {
trayIcon = __dirname + "/icons/tray_icon.ico";
} else {
trayIcon = __dirname + "/icons/128x128.png";
}
const mainWindowOpt = {
@ -84,7 +90,7 @@ const createWindow = () => {
},
]);
tray = new Tray(appIcon);
tray = new Tray(trayIcon);
tray.setContextMenu(contextMenu);
tray.setIgnoreDoubleClickEvents(true);
tray.on("click", function() {

BIN
public/icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
public/icons/256x256.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

BIN
public/icons/app.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

BIN
public/icons/tray.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB