Use Selected for active IconButtons

This commit is contained in:
Nate Butler 2023-11-16 16:17:10 -05:00
parent 3d8e63b93b
commit 9c5f580012

View File

@ -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,
};