summaryrefslogtreecommitdiffstats
path: root/examples/component/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-03-25 22:21:22 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-25 22:21:22 +0100
commiteae4065300e9997db12268be55eceb4e4c294b1e (patch)
tree677326f37ac8bbf922c18369d0f1d4955852fb18 /examples/component/src/main.rs
parenta2a8381a49ac2dd1cd65eb382b9ee02bbfa17286 (diff)
parent74373cb086da6097eae7d2e8bd6348aaf7c43857 (diff)
downloadiced-eae4065300e9997db12268be55eceb4e4c294b1e.tar.gz
iced-eae4065300e9997db12268be55eceb4e4c294b1e.tar.bz2
iced-eae4065300e9997db12268be55eceb4e4c294b1e.zip
Merge pull request #2350 from iced-rs/theming-revolutions
Theming Revolutions
Diffstat (limited to 'examples/component/src/main.rs')
-rw-r--r--examples/component/src/main.rs10
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 {