From 9c5f580012820686c6789e64392760ac1ffb7c72 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Thu, 16 Nov 2023 16:17:10 -0500 Subject: [PATCH] Use `Selected` for active IconButtons --- crates/ui2/src/components/icon_button.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui2/src/components/icon_button.rs b/crates/ui2/src/components/icon_button.rs index 5dd77711610527d0fa3c42ea232a1283a10a6b58..5512da2b34638e25e6450fd92f59b4a8d60c23f6 100644 --- a/crates/ui2/src/components/icon_button.rs +++ b/crates/ui2/src/components/icon_button.rs @@ -72,7 +72,7 @@ impl IconButton { fn render(mut self, _view: &mut V, cx: &mut ViewContext) -> impl Component { let icon_color = match (self.state, self.color) { (InteractionState::Disabled, _) => TextColor::Disabled, - (InteractionState::Active, _) => TextColor::Error, + (InteractionState::Active, _) => TextColor::Selected, _ => self.color, };