From c9a1bba3c250e63405fbbb206b79af052e1a408e Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Wed, 14 Aug 2024 17:44:00 +0800 Subject: [PATCH] Fix the disabled style of ghost button (#144) --- crates/ui/src/button.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui/src/button.rs b/crates/ui/src/button.rs index 8ad6aa2e..2cf41e54 100644 --- a/crates/ui/src/button.rs +++ b/crates/ui/src/button.rs @@ -536,7 +536,9 @@ impl ButtonStyle { _ => cx.theme().secondary.darken(0.2).grayscale(), }; let fg = match self { - ButtonStyle::Link | ButtonStyle::Text => cx.theme().link.grayscale(), + ButtonStyle::Link | ButtonStyle::Text | ButtonStyle::Ghost => { + cx.theme().link.grayscale() + } _ => cx.theme().secondary_foreground.darken(0.2).grayscale(), };