From b18207728b45e5718671fd23b1fb1709870f7da9 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 14 Oct 2024 10:19:58 +0800 Subject: [PATCH] dropdown: Use difference chevron icon color for enabled/disabled dropdown. (#336) image --- crates/ui/src/dropdown.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui/src/dropdown.rs b/crates/ui/src/dropdown.rs index ca1dd185..dba9f36e 100644 --- a/crates/ui/src/dropdown.rs +++ b/crates/ui/src/dropdown.rs @@ -659,7 +659,10 @@ where this.child( Icon::new(icon) - .text_color(cx.theme().muted_foreground) + .text_color(match self.disabled { + true => cx.theme().muted_foreground, + false => cx.theme().accent_foreground, + }) .when(self.disabled, |this| this.cursor_not_allowed()), ) }),