Skip to main content

theme_selector

Function theme_selector 

Source
pub fn theme_selector(current_theme_index: usize) -> Element<'static, Message>
Expand description

Create a theme selector pick_list() widget.

The widget displays the name of the current theme and, when opened, lists every theme returned by all_themes. Selecting a new entry emits Message::ThemeChanged with the chosen theme index.