pub fn detect() -> Mode
Expand description

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