Expand description

Detect if dark mode or light mode is enabled.

Examples

let mode = dark_light::detect();

match mode {
    dark_light::Mode::Dark => {},
    dark_light::Mode::Light => {},
}

Enums

Functions

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