Function dark_light::detect
source · 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::Default
.
pub fn detect() -> Mode
Detect if light mode or dark mode is enabled. If the mode can’t be detected, fall back to Mode::Default
.