From 7ece5eea509f3595432babfc7729701f2e063b21 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 7 Mar 2024 21:02:17 +0100 Subject: Implement additional helpers for `Border` and `container::Appearance` --- widget/src/progress_bar.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widget/src/progress_bar.rs') diff --git a/widget/src/progress_bar.rs b/widget/src/progress_bar.rs index f945a7b5..7b0ea63f 100644 --- a/widget/src/progress_bar.rs +++ b/widget/src/progress_bar.rs @@ -134,7 +134,7 @@ where width: active_progress_width, ..bounds }, - border: Border::with_radius(appearance.border.radius), + border: Border::rounded(appearance.border.radius), ..renderer::Quad::default() }, appearance.bar, @@ -230,6 +230,6 @@ fn styled( Appearance { background: background.into(), bar: bar.into(), - border: Border::with_radius(2), + border: Border::rounded(2), } } -- cgit