feat(tray): add Windows tray icon support and update icon selection logic
Desktop Client Build / Resolve Build Metadata (push) Successful in 41s
Desktop Client Build / Build Desktop Client (push) Successful in 25m7s
Desktop Client Build / Publish Client Artifacts to NAS (push) Successful in 30s

This commit is contained in:
Xu Liang
2026-05-31 14:12:35 +08:00
parent 2ea806e635
commit 33df72c6f4
3 changed files with 14 additions and 3 deletions
@@ -176,6 +176,7 @@ function buildMainProcessIcons() {
// Tray icons are 32x32 px and loaded @2x in tray.ts (=> ~16pt on retina).
// Glyph size is controlled by targetH in trayLogoSvg(), not by an rsvg -h.
const trayNormal = b64(svgToPng(trayLogoSvg(), 'tray-normal'))
const trayWindows = b64(svgToPng(trayLogoSvg(BRAND_BLUE), 'tray-windows'))
const trayDanger = b64(svgToPng(trayLogoSvg(DANGER_RED), 'tray-danger'))
// Dock / window icons: logo on the brand plate (normal) and danger plate.
@@ -200,6 +201,9 @@ function buildMainProcessIcons() {
'// macOS menu-bar template silhouette (rendered @2x).',
`export const TRAY_ICON_BASE64 =\n '${trayNormal}'`,
'',
'// Windows tray icon: brand-blue silhouette for light tray flyouts.',
`export const TRAY_WINDOWS_ICON_BASE64 =\n '${trayWindows}'`,
'',
'// Tray icon shown when accounts have health issues (rendered @2x, not a template).',
`export const TRAY_DANGER_ICON_BASE64 =\n '${trayDanger}'`,
'',