dropdown: Use difference chevron icon color for enabled/disabled dropdown. (#336)

<img width="547" alt="image"
src="https://github.com/user-attachments/assets/07239a63-b1ae-4462-b8ba-d30d7e7e66f5">
This commit is contained in:
Jason Lee 2024-10-14 10:19:58 +08:00 committed by GitHub
parent 5fd2ebf522
commit b18207728b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()),
)
}),