Skip to main content

tray_image

Function tray_image 

Source
fn tray_image(kind: TrayIconKind, os: &str) -> Result<Image<'static>>
Expand description

Decode a tray-icon asset and adapt it to the platform: macOS keeps the raw black template (AppKit tints it), every other OS gets the light-fill/dark-outline recolour so the glyph survives a dark panel (#86).