Skip to main content

set_preference

Function set_preference 

Source
pub fn set_preference(ctx: &Context, preference: ThemePreference)
Expand description

Asks for egui’s light or dark mode, or the system’s (ThemePreference::System): with a pair installed, it switches between the two at once, nothing installed again. A theme alone keeps its own mode whatever is asked.