-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
bug: using set_theme
is causing "low resolution" on some modules
#75
Comments
Hi, thanks for reporting this issue! As far as I can tell, this is because catppuccin-egui defines a border color while the default theme does not, and the border isn't antialiased for some reason. This also came up in #23. Would you mind testing it with the changes in #76 applied (the |
@Stonks3141 Thanks for looking into this, I built the The result proves that removing the I don't know if this helps, but I did a small test and it only seems to be an issue on the inactive bg_stoke. It could also be that the widget should shrink in egui when bg_stroke is added, as it seems to be cut off. 🤷 catppuccin_egui::set_theme(ctx, catppuccin_egui::LATTE);
ctx.style_mut(|style| {
let rounding = Rounding::same(10.0);
style.visuals.widgets.noninteractive.rounding = rounding;
style.visuals.widgets.inactive.rounding = rounding;
style.visuals.widgets.hovered.rounding = rounding;
style.visuals.widgets.active.rounding = rounding;
style.visuals.widgets.open.rounding = rounding;
style.visuals.widgets.inactive.bg_stroke.color = Color32::TRANSPARENT; // <--
}); |
@CtByte 's solution of setting |
@Stonks3141 I could not really test this properly but there seem to be a change in eframe 0.31 that draws the stroke inside instead of outside. I think this might just fix this issue. 🤞 |
Hi, thank you for this project!
I've noticed that after using the
set_theme
function, some of the modules become "low resolution".Before

After

I've created a project to demo this.
Would you please let me know if there is a way to fix this?
The text was updated successfully, but these errors were encountered: