Skip to main content

set_appearance

Function set_appearance 

Source
pub fn set_appearance(appearance: Appearance, cx: &mut App)
Expand description

Switches the active appearance (light/dark), swapping in the matching built-in theme so cx.theme().colors() reflects the new mode. Components that read neutrals via the theme re-style automatically.