summaryrefslogtreecommitdiffstats
path: root/examples/component
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-24 05:03:09 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-24 05:03:09 +0100
commitf0ae9a0c38c2532220a7460916604914db94c078 (patch)
treea1f0d1732108fa87ce4a63e76def9c38c8804d5d /examples/component
parente657dc2ecd2ffa72c0abd87f9a59dcc1acbc7083 (diff)
downloadiced-f0ae9a0c38c2532220a7460916604914db94c078.tar.gz
iced-f0ae9a0c38c2532220a7460916604914db94c078.tar.bz2
iced-f0ae9a0c38c2532220a7460916604914db94c078.zip
Use `Catalog` approach for all widgets
Diffstat (limited to 'examples/component')
-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 d5626087..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::Catalog
- + 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::Catalog
- + text_input::DefaultStyle
- + 'static,
+ Theme: text::Catalog + button::Catalog + text_input::Catalog + 'static,
Message: 'a,
{
fn from(numeric_input: NumericInput<Message>) -> Self {