summaryrefslogtreecommitdiffstats
path: root/examples/component/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-03-12 18:17:19 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-12 18:17:19 +0100
commit3d915d3cb30e5d08829aa2928676a53c505a601e (patch)
tree4acb46e00ef3037aad6a8273ab67d4278d560784 /examples/component/src
parent34317bba5db0a0f9e3ffdbbac0d7136a32bd0f95 (diff)
parent98621aa344a7a0e1b23f320d21a4687af559998e (diff)
downloadiced-3d915d3cb30e5d08829aa2928676a53c505a601e.tar.gz
iced-3d915d3cb30e5d08829aa2928676a53c505a601e.tar.bz2
iced-3d915d3cb30e5d08829aa2928676a53c505a601e.zip
Merge pull request #2326 from iced-rs/closure-styles
Use closures for widget styling
Diffstat (limited to 'examples/component/src')
-rw-r--r--examples/component/src/main.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/component/src/main.rs b/examples/component/src/main.rs
index a1572b1d..d4f99798 100644
--- a/examples/component/src/main.rs
+++ b/examples/component/src/main.rs
@@ -83,7 +83,10 @@ mod numeric_input {
impl<Message, Theme> Component<Message, Theme> for NumericInput<Message>
where
- Theme: button::DefaultStyle + text_input::DefaultStyle + 'static,
+ Theme: text::DefaultStyle
+ + button::DefaultStyle
+ + text_input::DefaultStyle
+ + 'static,
{
type State = ();
type Event = Event;
@@ -158,7 +161,10 @@ mod numeric_input {
impl<'a, Message, Theme> From<NumericInput<Message>>
for Element<'a, Message, Theme>
where
- Theme: button::DefaultStyle + text_input::DefaultStyle + 'static,
+ Theme: text::DefaultStyle
+ + button::DefaultStyle
+ + text_input::DefaultStyle
+ + 'static,
Message: 'a,
{
fn from(numeric_input: NumericInput<Message>) -> Self {