mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Require a StrokeKind when painting rectangles with strokes (#5648)
This is a breaking change, requiring users to think about wether the stroke is inside/centered/outside the rect. When in doubt, add `egui::StrokeKind::Inside` to the function call.
This commit is contained in:
@@ -75,6 +75,7 @@ impl FrameHistory {
|
||||
style.rounding,
|
||||
ui.visuals().extreme_bg_color,
|
||||
ui.style().noninteractive().bg_stroke,
|
||||
egui::StrokeKind::Inside,
|
||||
)));
|
||||
|
||||
let rect = rect.shrink(4.0);
|
||||
|
||||
Reference in New Issue
Block a user