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

@ -39,6 +39,7 @@ impl<'a, Message: 'static + Clone> From<NavButton<'a, Message>> for Element<'a,
},
24,
)
.force_svg(true)
.style(theme::Svg::SymbolicActive)
.width(Length::Units(24))
.height(Length::Fill);