Skip to main content

sync_system_theme

Function sync_system_theme 

Source
pub fn sync_system_theme()
Expand description

Applies the OS brightness (rosace_core::media_query().is_dark) to the active theme, but only while use_theme_mode() == ThemeMode::System — an app/user that pinned Light/Dark via set_theme_mode is left alone. Native platform code calls this right after every rosace_core::set_media_query(..) push.