Use Selected
for active IconButtons
This commit is contained in:
parent
3d8e63b93b
commit
9c5f580012
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue