diff --git a/src/main/base/app.ts b/src/main/base/app.ts index 17c55e01..2f8100ec 100644 --- a/src/main/base/app.ts +++ b/src/main/base/app.ts @@ -259,7 +259,6 @@ export class AppEvents { height: 20 }), } - this.tray = new Tray(process.platform === 'win32' ? icons.win32 : (process.platform === 'darwin' ? icons.darwin : icons.linux)) this.tray.setToolTip(app.getName()) this.setTray(false) @@ -298,12 +297,17 @@ export class AppEvents { private setTray(visible: boolean = utils.getWindow().isVisible()) { this.i18n = utils.getLocale(utils.getStoreValue('general.language')) + const ciderIcon = nativeImage.createFromPath(path.join(__dirname, `../../resources/icons/icon.png`)).resize({ + width: 20, + height: 20 + }) + const menu = Menu.buildFromTemplate([ { label: app.getName(), enabled: false, - icon: path.join(__dirname, `../../resources/icons/icon.png`), + icon: ciderIcon, }, {type: 'separator'},