Fine-tune Catalog approach for button, checkbox, and svg
This commit is contained in:
parent
999ad2d288
commit
e657dc2ecd
9 changed files with 167 additions and 149 deletions
|
|
@ -161,7 +161,7 @@ pub fn checkbox<'a, Message, Theme, Renderer>(
|
|||
is_checked: bool,
|
||||
) -> Checkbox<'a, Message, Theme, Renderer>
|
||||
where
|
||||
Theme: checkbox::DefaultStyle + 'a,
|
||||
Theme: checkbox::Catalog + 'a,
|
||||
Renderer: core::text::Renderer,
|
||||
{
|
||||
Checkbox::new(label, is_checked)
|
||||
|
|
@ -367,7 +367,7 @@ pub fn svg<'a, Theme>(
|
|||
handle: impl Into<core::svg::Handle>,
|
||||
) -> crate::Svg<'a, Theme>
|
||||
where
|
||||
Theme: crate::svg::DefaultStyle + 'a,
|
||||
Theme: crate::svg::Catalog,
|
||||
{
|
||||
crate::Svg::new(handle)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue