feat: Themable SVGs, applied to window controls

This commit is contained in:
Michael Aaron Murphy 2022-11-01 13:06:00 +01:00
parent 947532413a
commit 4a899189e6
4 changed files with 35 additions and 2 deletions

View file

@ -108,8 +108,9 @@ impl<Message: Clone> Component<Message, Renderer> for HeaderBar<Message> {
let icon = |name, size, on_press| {
super::icon(name, size)
.style(crate::theme::Svg::Accent)
.apply(widget::button)
.style(theme::Button::Primary)
.style(theme::Button::Text)
.on_press(on_press)
};