Try catalog theming approach with Button

This commit is contained in:
Héctor Ramón Jiménez 2024-03-23 19:23:08 +01:00
parent 2b00e8b145
commit 999ad2d288
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 89 additions and 55 deletions

View file

@ -117,7 +117,7 @@ pub fn button<'a, Message, Theme, Renderer>(
content: impl Into<Element<'a, Message, Theme, Renderer>>,
) -> Button<'a, Message, Theme, Renderer>
where
Theme: button::DefaultStyle + 'a,
Theme: button::Catalog + 'a,
Renderer: core::Renderer,
{
Button::new(content)