feat: SVG styling with icon fill color
This commit is contained in:
parent
0249640213
commit
75ae0de9bd
7 changed files with 137 additions and 22 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue