fix(theme): header button icon color

This commit is contained in:
Michael Aaron Murphy 2023-10-12 14:51:59 +02:00
parent c77154ae05
commit 5f37dc3981
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

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