Skip to main content

themed

Function themed 

Source
pub fn themed<R>(
    ui: &mut Ui,
    theme: Arc<Theme>,
    contents: impl FnOnce(&mut Ui) -> R,
) -> R
Expand description

Run contents with theme as the theme of every component in it and its egui style on the Ui, whatever the app’s own style is.