[codex] fix Windows tray icon size (#1202)
* fix windows tray icon sizing * use client logo for windows tray
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
@@ -31,6 +31,7 @@ extraResources:
|
||||
- "icon.png"
|
||||
- "icon.ico"
|
||||
- "trayTemplate.png"
|
||||
- "trayWindows.png"
|
||||
- from: "../.."
|
||||
to: "webui"
|
||||
filter:
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user