Function dark_light::detect[][src]

pub fn detect() -> Mode

Detect if light mode or dark mode is enabled. If the mode can’t be detected, fall back to Mode::Light.