Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Egui windows have large shadows when using Catppuccin themes #22

Open
manankarnik opened this issue Jan 13, 2024 · 0 comments
Open

Egui windows have large shadows when using Catppuccin themes #22

manankarnik opened this issue Jan 13, 2024 · 0 comments

Comments

@manankarnik
Copy link

manankarnik commented Jan 13, 2024

I'm using bevy along with bevy_egui and the git version of Catppuccin egui. When catpuccin themes are applied, floating windows have a large shadow applied to them.

Using set_theme

fn gui(mut contexts: EguiContexts) {
    catppuccin_egui::set_theme(contexts.ctx(), catppuccin_egui::LATTE);
    egui::Window::new("Noise").show(contexts.ctx_mut(), |ui| { /* UI code */ });
    egui::SidePanel::left("Noise").show(contexts.ctx_mut(), |ui| { /* UI code */ });
}

image

Using set_style_theme

fn gui(mut contexts: EguiContexts) {
    let mut style = (*contexts.ctx_mut().style()).clone();
    catppuccin_egui::set_style_theme(&mut style, catppuccin_egui::LATTE);
    contexts.ctx_mut().set_style(style);
    egui::Window::new("Noise").show(contexts.ctx_mut(), |ui| { /* UI code */ });
    egui::SidePanel::left("Noise").show(contexts.ctx_mut(), |ui| { /* UI code */ });
}

image

Using default theme

fn gui(mut contexts: EguiContexts) {
    contexts.ctx_mut().style_mut(|style| {
        style.visuals = Visuals::light();
    });
    egui::Window::new("Noise").show(contexts.ctx_mut(), |ui| { /* UI code */ });
    egui::SidePanel::left("Noise").show(contexts.ctx_mut(), |ui| { /* UI code */ });
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant