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

Default faint color not visible #316

Open
thmxv opened this issue Oct 29, 2024 · 2 comments
Open

Default faint color not visible #316

thmxv opened this issue Oct 29, 2024 · 2 comments

Comments

@thmxv
Copy link

thmxv commented Oct 29, 2024

The default faint color used for striped Grid and Table is not visible in Bevy (at least in the dark theme).

It is visible in the egui.rs web demo of egui and in native with eframe, but not with bevy_egui.

For the moment, I work around the issue with the following startup system:

fn set_egui_style(mut contexts: EguiContexts) {
    let mut visuals = egui::Visuals::dark();
    visuals.faint_bg_color =
        egui::Color32::from_rgba_unmultiplied(255, 255, 255, 1);
    contexts.ctx_mut().set_style(egui::Style {
        visuals,
        ..Default::default()
    });
}
@vladbat00
Copy link
Owner

Thank you for the report! I have a feeling this might also be related to #291. I've been procrastinating to check what's up with those for quite a while..

@thmxv
Copy link
Author

thmxv commented Dec 1, 2024

This issue is not related to WASM. On a native application (not WASM) the faint color is visible in a egui/eframe application, but not in a egui/Bevy one.

Edit: Or maybe it is related and Bevy does the right thing in WASM but not in native?

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

2 participants