feat: SVG styling with icon fill color

This commit is contained in:
Michael Aaron Murphy 2022-11-16 17:42:41 +01:00 committed by Héctor Ramón Jiménez
parent 0249640213
commit 75ae0de9bd
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
7 changed files with 137 additions and 22 deletions

View file

@ -285,6 +285,12 @@ where
///
/// [`Svg`]: widget::Svg
/// [`Handle`]: widget::svg::Handle
pub fn svg(handle: impl Into<widget::svg::Handle>) -> widget::Svg {
pub fn svg<Renderer>(
handle: impl Into<widget::svg::Handle>,
) -> widget::Svg<Renderer>
where
Renderer: crate::svg::Renderer,
Renderer::Theme: crate::svg::StyleSheet,
{
widget::Svg::new(handle)
}