diff --git a/egui/src/widgets/plot/items/bar.rs b/egui/src/widgets/plot/items/bar.rs index 5c0546a..39f3a91 100644 --- a/egui/src/widgets/plot/items/bar.rs +++ b/egui/src/widgets/plot/items/bar.rs @@ -129,7 +129,7 @@ impl Bar { let rect = transform.rect_from_values(&self.bounds_min(), &self.bounds_max()); let rect = Shape::Rect(RectShape { rect, - corner_radius: Rounding::none(), + rounding: Rounding::none(), fill, stroke, }); diff --git a/egui/src/widgets/plot/items/box_elem.rs b/egui/src/widgets/plot/items/box_elem.rs index 8a9fe54..7cda17c 100644 --- a/egui/src/widgets/plot/items/box_elem.rs +++ b/egui/src/widgets/plot/items/box_elem.rs @@ -152,7 +152,7 @@ impl BoxElem { ); let rect = Shape::Rect(RectShape { rect, - corner_radius: Rounding::none(), + rounding: Rounding::none(), fill, stroke, }); diff --git a/egui/src/widgets/plot/legend.rs b/egui/src/widgets/plot/legend.rs index cbb5a67..71f3dfd 100644 --- a/egui/src/widgets/plot/legend.rs +++ b/egui/src/widgets/plot/legend.rs @@ -240,7 +240,7 @@ impl Widget for &mut LegendWidget { .scope(|ui| { let background_frame = Frame { margin: vec2(8.0, 4.0), - corner_radius: ui.style().visuals.window_corner_radius, + rounding: ui.style().visuals.window_rounding, shadow: epaint::Shadow::default(), fill: ui.style().visuals.extreme_bg_color, stroke: ui.style().visuals.window_stroke(), diff --git a/egui/src/widgets/plot/mod.rs b/egui/src/widgets/plot/mod.rs index d3aae10..647c1b4 100644 --- a/egui/src/widgets/plot/mod.rs +++ b/egui/src/widgets/plot/mod.rs @@ -479,7 +479,7 @@ impl Plot { if show_background { ui.painter().sub_region(rect).add(epaint::RectShape { rect, - corner_radius: Rounding::same(2.0), + rounding: Rounding::same(2.0), fill: ui.visuals().extreme_bg_color, stroke: ui.visuals().widgets.noninteractive.bg_stroke, });