fix(theme): header button icon color
This commit is contained in:
parent
395a90891d
commit
ca3870ed13
1 changed files with 7 additions and 5 deletions
|
|
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue