feat!: Icon support for SVGs and Images w/ IconSource

This commit is contained in:
Ashley Wulber 2022-12-16 19:25:49 -05:00 committed by GitHub
parent c2625ef450
commit d6800f7716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 107 additions and 40 deletions

View file

@ -95,6 +95,7 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
let icon = |name, size, on_press| {
super::icon(name, size)
.force_svg(true)
.style(crate::theme::Svg::SymbolicActive)
.apply(iced::widget::button)
.style(theme::Button::Text)