From 954f49d4d73d040ef9367800a662031cd92d9e09 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 22 Feb 2025 00:34:55 +0100 Subject: Add `weakest` and `strongest` to `Background` palette ... and tweak background shade generation logic. --- widget/src/container.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widget/src/container.rs') diff --git a/widget/src/container.rs b/widget/src/container.rs index da5b436f..82774186 100644 --- a/widget/src/container.rs +++ b/widget/src/container.rs @@ -703,10 +703,10 @@ pub fn bordered_box(theme: &Theme) -> Style { let palette = theme.extended_palette(); Style { - background: Some(palette.background.weak.color.into()), + background: Some(palette.background.weakest.color.into()), border: Border { width: 1.0, - radius: 0.0.into(), + radius: 5.0.into(), color: palette.background.strong.color, }, ..Style::default() -- cgit