feat(tray): add Windows tray icon support and update icon selection logic
This commit is contained in:
@@ -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}'`,
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user