style: Updated icons: separated tray, app and installer icons.
Thanks @Sylvie_Em#2700 @clebbington.
@ -106,13 +106,13 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"appId": "ryzen-team.app.ryzen-controller",
|
"appId": "ryzen-team.app.ryzen-controller",
|
||||||
"productName": "Ryzen Controller",
|
"productName": "Ryzen Controller",
|
||||||
"icon": "./build/icon.ico",
|
"icon": "./build/icons/app.ico",
|
||||||
"asarUnpack": [
|
"asarUnpack": [
|
||||||
"**/build/bin/*"
|
"**/build/bin/*"
|
||||||
],
|
],
|
||||||
"linux": {
|
"linux": {
|
||||||
"category": "Utility",
|
"category": "Utility",
|
||||||
"icon": "./build/icon.png",
|
"icon": "./build/icons/612x612.png",
|
||||||
"target": [
|
"target": [
|
||||||
{
|
{
|
||||||
"target": "deb"
|
"target": "deb"
|
||||||
@ -123,6 +123,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
|
"installerIcon": "./build/icons/installer.ico",
|
||||||
"oneClick": false,
|
"oneClick": false,
|
||||||
"perMachine": true,
|
"perMachine": true,
|
||||||
"allowToChangeInstallationDirectory": true
|
"allowToChangeInstallationDirectory": true
|
||||||
|
@ -23,10 +23,16 @@ const currentSettings = () => {
|
|||||||
|
|
||||||
const createWindow = () => {
|
const createWindow = () => {
|
||||||
let appIcon = "";
|
let appIcon = "";
|
||||||
|
let trayIcon = "";
|
||||||
if (require("os").platform() === "win32") {
|
if (require("os").platform() === "win32") {
|
||||||
appIcon = __dirname + "/icon.ico";
|
appIcon = __dirname + "/icons/app_icon.ico";
|
||||||
} else {
|
} 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 = {
|
const mainWindowOpt = {
|
||||||
@ -84,7 +90,7 @@ const createWindow = () => {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
tray = new Tray(appIcon);
|
tray = new Tray(trayIcon);
|
||||||
tray.setContextMenu(contextMenu);
|
tray.setContextMenu(contextMenu);
|
||||||
tray.setIgnoreDoubleClickEvents(true);
|
tray.setIgnoreDoubleClickEvents(true);
|
||||||
tray.on("click", function() {
|
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 |