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/button.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widget/src/button.rs') diff --git a/widget/src/button.rs b/widget/src/button.rs index 1b51065d..d4500888 100644 --- a/widget/src/button.rs +++ b/widget/src/button.rs @@ -591,12 +591,12 @@ impl Catalog for Theme { /// A primary button; denoting a main action. pub fn primary(theme: &Theme, status: Status) -> Style { let palette = theme.extended_palette(); - let base = styled(palette.primary.strong); + let base = styled(palette.primary.base); match status { Status::Active | Status::Pressed => base, Status::Hovered => Style { - background: Some(Background::Color(palette.primary.base.color)), + background: Some(Background::Color(palette.primary.strong.color)), ..base }, Status::Disabled => disabled(base), -- cgit