Skip to main content

system_color_scheme

Function system_color_scheme 

Source
pub fn system_color_scheme() -> Option<SystemColorScheme>
Expand description

Whether the system appearance is light or dark, as the Renderer last reported it, or None before its first report.

This is the system’s setting whatever the theme asks for. An application that draws something of its own, such as an HTML page answering prefers-color-scheme, reads it here; native widgets already follow the theme without it.