Skip to main content

global_theme_preference_switch

Function global_theme_preference_switch 

Source
pub fn global_theme_preference_switch(ui: &mut Ui)
👎Deprecated:

Use global_theme_preference_buttons instead: it also covers following the system theme

Available on crate feature egui only.
Expand description

Show a small button to switch to/from dark/light mode (globally).

This does not allow switching back to following the system theme, which is why global_theme_preference_buttons is preferred.