From dbf8b797f20b3f8a692ecb394d19673d17e2f4cf Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Mon, 2 Dec 2024 16:51:40 -0500 Subject: [PATCH 1/2] fix: remove widget border from style The border isn't antialiased for some reason, so removing it seems to be the best option. --- src/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cca0bbc..cf73577 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,10 +84,6 @@ fn make_widget_visual( style::WidgetVisuals { bg_fill, weak_bg_fill: bg_fill, - bg_stroke: egui::Stroke { - color: theme.overlay1, - ..old.bg_stroke - }, fg_stroke: egui::Stroke { color: theme.text, ..old.fg_stroke From 37c221753f53694b0ce811cd9bf1a03de5ce0e17 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Tue, 3 Dec 2024 17:53:32 -0500 Subject: [PATCH 2/2] fix: add bg_stroke with same color as background This should avoid both antialiasing issues with a different-colored stroke and sizing issues with no stroke. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index cf73577..2cee71b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,6 +84,10 @@ fn make_widget_visual( style::WidgetVisuals { bg_fill, weak_bg_fill: bg_fill, + bg_stroke: egui::Stroke { + color: bg_fill, + ..old.bg_stroke + }, fg_stroke: egui::Stroke { color: theme.text, ..old.fg_stroke