Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use `Selected` for active IconButtons
Nate Butler9c5f58001282
diff --git a/crates/ui2/src/components/icon_button.rs b/crates/ui2/src/components/icon_button.rsindex 5dd77711610..5512da2b346 100644--- a/crates/ui2/src/components/icon_button.rs+++ b/crates/ui2/src/components/icon_button.rs@@ -72,7 +72,7 @@ impl<V: 'static> IconButton<V> {fn render(mut self, _view: &mut V, cx: &mut ViewContext<V>) -> impl Component<V> {let icon_color = match (self.state, self.color) {(InteractionState::Disabled, _) => TextColor::Disabled,- (InteractionState::Active, _) => TextColor::Error,+ (InteractionState::Active, _) => TextColor::Selected,_ => self.color,};