pub fn system_icon_set() -> IconSetExpand description
Detect the native icon set for the current operating system.
Returns the platform-appropriate icon set at runtime using cfg!() macros:
- macOS / iOS:
IconSet::SfSymbols - Windows:
IconSet::SegoeIcons - Linux:
IconSet::Freedesktop - Other:
IconSet::Material(safe cross-platform fallback)
ยงExamples
use native_theme::{IconSet, system_icon_set};
let set = system_icon_set();
// On Linux, this returns Freedesktop