mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -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:
@@ -47,7 +47,7 @@ fn custom_window_frame(ctx: &egui::Context, title: &str, add_contents: impl FnOn
|
||||
|
||||
let panel_frame = egui::Frame::new()
|
||||
.fill(ctx.style().visuals.window_fill())
|
||||
.rounding(10)
|
||||
.corner_radius(10)
|
||||
.stroke(ctx.style().visuals.widgets.noninteractive.fg_stroke)
|
||||
.outer_margin(1); // so the stroke is within the bounds
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ impl eframe::App for MyApp {
|
||||
.on_hover_text_at_pointer("Svg");
|
||||
|
||||
let url = "https://picsum.photos/seed/1.759706314/1024";
|
||||
ui.add(egui::Image::new(url).rounding(10.0))
|
||||
ui.add(egui::Image::new(url).corner_radius(10))
|
||||
.on_hover_text_at_pointer(url);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user