[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.png"
|
||||||
- "icon.ico"
|
- "icon.ico"
|
||||||
- "trayTemplate.png"
|
- "trayTemplate.png"
|
||||||
|
- "trayWindows.png"
|
||||||
- from: "../.."
|
- from: "../.."
|
||||||
to: "webui"
|
to: "webui"
|
||||||
filter:
|
filter:
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ function createTray() {
|
|||||||
? desktopWindowsTrayIcon()
|
? desktopWindowsTrayIcon()
|
||||||
: desktopIcon()
|
: desktopIcon()
|
||||||
const icon = nativeImage.createFromPath(source).resize({
|
const icon = nativeImage.createFromPath(source).resize({
|
||||||
width: 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' ? 20 : 16,
|
height: process.platform === 'darwin' ? 18 : process.platform === 'win32' ? 24 : 16,
|
||||||
quality: 'best',
|
quality: 'best',
|
||||||
})
|
})
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ export function desktopIcon(): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function desktopWindowsTrayIcon(): string {
|
export function desktopWindowsTrayIcon(): string {
|
||||||
if (app.isPackaged) return resolve(process.resourcesPath, 'build', 'icon.ico')
|
if (app.isPackaged) return resolve(process.resourcesPath, 'build', 'trayWindows.png')
|
||||||
return resolve(app.getAppPath(), 'build', 'icon.ico')
|
return resolve(app.getAppPath(), 'build', 'trayWindows.png')
|
||||||
}
|
}
|
||||||
|
|
||||||
export function desktopTrayTemplateIcon(): string {
|
export function desktopTrayTemplateIcon(): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user