From 634ab143066eaa0b8fd5480e2da777bc56426019 Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Thu, 24 Jul 2025 14:19:10 +0800 Subject: [PATCH] button: Use muted foreground as disabled text color (#1088) --- crates/ui/src/button/button.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/ui/src/button/button.rs b/crates/ui/src/button/button.rs index 842d56f3..ab775589 100644 --- a/crates/ui/src/button/button.rs +++ b/crates/ui/src/button/button.rs @@ -891,13 +891,7 @@ impl ButtonVariant { ButtonVariant::Secondary => cx.theme().secondary.opacity(1.5), ButtonVariant::Custom(style) => style.color.opacity(0.15), }; - let fg = match self { - ButtonVariant::Link | ButtonVariant::Text | ButtonVariant::Ghost => { - cx.theme().link.grayscale() - } - _ => cx.theme().secondary_foreground.opacity(0.5).grayscale(), - }; - + let fg = cx.theme().muted_foreground.opacity(0.5); let (bg, border) = if outline { (cx.theme().transparent, cx.theme().border.opacity(0.5)) } else {