Skip to main content

set_icon_detector

Function set_icon_detector 

Source
pub fn set_icon_detector(detector: fn() -> IconMode)
Expand description

Overrides the detector used to determine icon mode.

This is useful for testing or when you want to force a specific icon mode.

ยงExample

use standout_render::{IconMode, set_icon_detector};

// Force Nerd Font mode for testing
set_icon_detector(|| IconMode::NerdFont);