Skip to main content

icon_is_template

Function icon_is_template 

Source
fn icon_is_template(os: &str) -> bool
Expand description

Whether the tray icon should be registered as a template image.

Template mode is a macOS-only concept: AppKit recolours a monochrome template glyph to suit the light/dark menu bar. On Linux (StatusNotifierItem / AppIndicator) and Windows there is no template recolouring, so a dark monochrome glyph stays dark and vanishes against a dark panel (#86). Only macOS gets template mode.