diff options
Diffstat (limited to 'examples/component/src')
-rw-r--r-- | examples/component/src/main.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/examples/component/src/main.rs b/examples/component/src/main.rs index 43ba3187..b2c71b3f 100644 --- a/examples/component/src/main.rs +++ b/examples/component/src/main.rs @@ -73,10 +73,7 @@ mod numeric_input { impl<Message, Theme> Component<Message, Theme> for NumericInput<Message> where - Theme: text::DefaultStyle - + button::DefaultStyle - + text_input::DefaultStyle - + 'static, + Theme: text::Catalog + button::Catalog + text_input::Catalog + 'static, { type State = (); type Event = Event; @@ -151,10 +148,7 @@ mod numeric_input { impl<'a, Message, Theme> From<NumericInput<Message>> for Element<'a, Message, Theme> where - Theme: text::DefaultStyle - + button::DefaultStyle - + text_input::DefaultStyle - + 'static, + Theme: text::Catalog + button::Catalog + text_input::Catalog + 'static, Message: 'a, { fn from(numeric_input: NumericInput<Message>) -> Self { |