Skip to main content

global_theme_preference_buttons

Function global_theme_preference_buttons 

Source
pub fn global_theme_preference_buttons(ui: &mut Ui)
Expand description

Show a row of buttons for changing the theme of the whole app.

There is one button for each crate::ThemePreference: dark mode, light mode, and following the system theme. The button of the current preference is highlighted.

Each button is a small icon, so this fits in a top bar.