Skip to content

Commit

Permalink
fix: add bg_stroke with same color as background
Browse files Browse the repository at this point in the history
This should avoid both antialiasing issues with a different-colored
stroke and sizing issues with no stroke.
  • Loading branch information
Stonks3141 committed Dec 3, 2024
1 parent dbf8b79 commit 37c2217
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37c2217

Please sign in to comment.