[codex] fix Windows tray icon size (#1202)

* fix windows tray icon sizing

* use client logo for windows tray
This commit is contained in:
ekko
2026-06-01 13:31:06 +08:00
committed by GitHub
parent b96bda4834
commit d2a7c54e9e
4 changed files with 5 additions and 4 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

+1
View File
@@ -31,6 +31,7 @@ extraResources:
- "icon.png"
- "icon.ico"
- "trayTemplate.png"
- "trayWindows.png"
- from: "../.."
to: "webui"
filter:
+2 -2
View File
@@ -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') {
+2 -2
View File
@@ -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 {