catppuccin_eguiFunction set_style_theme
source pub fn set_style_theme(style: &mut Style, theme: Theme)
Expand description
Apply the given theme to a Style
.
ยงExample
let mut style = (*ctx.style()).clone();
catppuccin_egui::set_style_theme(&mut style, catppuccin_egui::MACCHIATO);
ctx.set_style(style);