From a478e5415315bfe7689e0e6c8416b26f80161219 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 5 Feb 2022 18:13:46 +0100 Subject: [PATCH] Rename corner_radius to rounding Also update changelogs and clean up other aspects of https://github.com/emilk/egui/pull/1206 --- egui/src/widgets/plot/items/bar.rs | 2 +- egui/src/widgets/plot/items/box_elem.rs | 2 +- egui/src/widgets/plot/legend.rs | 2 +- egui/src/widgets/plot/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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, });