Skip to main content

detect_is_dark

Function detect_is_dark 

Source
pub fn detect_is_dark() -> bool
Expand description

Detect whether the system is using a dark color scheme without caching.

Unlike system_is_dark(), this function queries the OS every time it is called and never caches the result. Use this when polling for theme changes or implementing live dark-mode tracking.

See system_is_dark() for platform behavior details.