Skip to main content

set_appearance

Function set_appearance 

Source
pub fn set_appearance(dark: Option<bool>)
Expand description

Override the app’s appearance: Some(true) dark, Some(false) light, None follow the system again. On backends reporting Cap::Appearance the native widgets restyle in place and dark_mode answers the override; app-painted surfaces pick it up on their next rebuild. Other backends ignore the call — probe before offering a theme picker.

Day API ↩ Guides· daybrite.dev