Function catppuccin_egui::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);