mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
⚠️ Rename Rounding to CornerRadius (#5673)
Breaking change! * `Rounding` -> `CornerRadius` * `rounding` -> `corner_radius` This is to: * Clarify * Conform to other systems (e.g. Figma) * Avoid confusion with `GuiRounding`
This commit is contained in:
@@ -128,7 +128,7 @@ impl<'l> StripLayout<'l> {
|
||||
if flags.striped {
|
||||
self.ui.painter().rect_filled(
|
||||
gapless_rect,
|
||||
egui::Rounding::ZERO,
|
||||
egui::CornerRadius::ZERO,
|
||||
self.ui.visuals().faint_bg_color,
|
||||
);
|
||||
}
|
||||
@@ -136,7 +136,7 @@ impl<'l> StripLayout<'l> {
|
||||
if flags.selected {
|
||||
self.ui.painter().rect_filled(
|
||||
gapless_rect,
|
||||
egui::Rounding::ZERO,
|
||||
egui::CornerRadius::ZERO,
|
||||
self.ui.visuals().selection.bg_fill,
|
||||
);
|
||||
}
|
||||
@@ -144,7 +144,7 @@ impl<'l> StripLayout<'l> {
|
||||
if flags.hovered && !flags.selected && self.sense.interactive() {
|
||||
self.ui.painter().rect_filled(
|
||||
gapless_rect,
|
||||
egui::Rounding::ZERO,
|
||||
egui::CornerRadius::ZERO,
|
||||
self.ui.visuals().widgets.hovered.bg_fill,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user