fix(theme): header button icon color

This commit is contained in:
Michael Aaron Murphy 2023-10-12 14:51:59 +02:00 committed by Michael Murphy
parent 395a90891d
commit ca3870ed13

View file

@ -109,11 +109,13 @@ impl StyleSheet for crate::Theme {
}
appearance(self, focused, style, |component| {
(
component.base.into(),
Some(component.on.into()),
Some(component.on.into()),
)
let text_color = if let Button::Icon | Button::IconVertical = style {
None
} else {
Some(component.on.into())
};
(component.base.into(), text_color, text_color)
})
}