style: Updated icons: separated tray, app and installer icons.
Thanks @Sylvie_Em#2700 @clebbington.
@ -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
|
||||
|
@ -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
After Width: | Height: | Size: 6.0 KiB |
BIN
public/icons/256x256.png
Normal file
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
BIN
public/icons/app.ico
Normal file
After Width: | Height: | Size: 264 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
BIN
public/icons/tray.ico
Normal file
After Width: | Height: | Size: 246 KiB |