diff --git a/packages/desktop/build/trayWindows.png b/packages/desktop/build/trayWindows.png new file mode 100644 index 0000000..7c3c63e Binary files /dev/null and b/packages/desktop/build/trayWindows.png differ diff --git a/packages/desktop/electron-builder.yml b/packages/desktop/electron-builder.yml index 0f48a20..d927442 100644 --- a/packages/desktop/electron-builder.yml +++ b/packages/desktop/electron-builder.yml @@ -31,6 +31,7 @@ extraResources: - "icon.png" - "icon.ico" - "trayTemplate.png" + - "trayWindows.png" - from: "../.." to: "webui" filter: diff --git a/packages/desktop/src/main/index.ts b/packages/desktop/src/main/index.ts index 22355ca..ab7052e 100644 --- a/packages/desktop/src/main/index.ts +++ b/packages/desktop/src/main/index.ts @@ -97,8 +97,8 @@ function createTray() { ? desktopWindowsTrayIcon() : desktopIcon() const icon = nativeImage.createFromPath(source).resize({ - width: process.platform === 'darwin' ? 18 : process.platform === 'win32' ? 20 : 16, - height: process.platform === 'darwin' ? 18 : process.platform === 'win32' ? 20 : 16, + width: process.platform === 'darwin' ? 18 : process.platform === 'win32' ? 24 : 16, + height: process.platform === 'darwin' ? 18 : process.platform === 'win32' ? 24 : 16, quality: 'best', }) if (process.platform === 'darwin') { diff --git a/packages/desktop/src/main/paths.ts b/packages/desktop/src/main/paths.ts index 9618f3d..04a2dd5 100644 --- a/packages/desktop/src/main/paths.ts +++ b/packages/desktop/src/main/paths.ts @@ -46,8 +46,8 @@ export function desktopIcon(): string { } export function desktopWindowsTrayIcon(): string { - if (app.isPackaged) return resolve(process.resourcesPath, 'build', 'icon.ico') - return resolve(app.getAppPath(), 'build', 'icon.ico') + if (app.isPackaged) return resolve(process.resourcesPath, 'build', 'trayWindows.png') + return resolve(app.getAppPath(), 'build', 'trayWindows.png') } export function desktopTrayTemplateIcon(): string {