Try Style newtype instead of trait for Svg widget
This commit is contained in:
parent
597a41cea7
commit
8a63774b24
2 changed files with 26 additions and 14 deletions
|
|
@ -366,7 +366,7 @@ pub fn image<Handle>(handle: impl Into<Handle>) -> crate::Image<Handle> {
|
|||
#[cfg(feature = "svg")]
|
||||
pub fn svg<Theme>(handle: impl Into<core::svg::Handle>) -> crate::Svg<Theme>
|
||||
where
|
||||
Theme: crate::svg::Style,
|
||||
crate::svg::Style<Theme>: Default,
|
||||
{
|
||||
crate::Svg::new(handle)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue