aboutsummaryrefslogtreecommitdiff
path: root/examples/styling.rs
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-11-28 12:19:51 +0100
committerPolesznyák Márk <contact@pml68.dev>2025-11-30 01:58:04 +0100
commit9eb4a16495921ef65e3fb27277e64e8e9b7b2fd1 (patch)
treec7700a1ab1246c49911a09b3cbbd43b6416d21a1 /examples/styling.rs
parentfeat!: combine `Primary`, `Secondary`, `Tertiary` and `Error` (diff)
downloadiced_material-9eb4a16495921ef65e3fb27277e64e8e9b7b2fd1.tar.gz
chore: update as necessary for upstream iced changes
Diffstat (limited to '')
-rw-r--r--examples/styling.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/styling.rs b/examples/styling.rs
index 4ed643e..37a613d 100644
--- a/examples/styling.rs
+++ b/examples/styling.rs
@@ -118,7 +118,8 @@ impl Styling {
.width(Fill)
.into()
},
- checkbox("Use system theme", self.system_theme)
+ checkbox(self.system_theme)
+ .label("Use system theme")
.on_toggle(Message::SystemTheme)
]
.spacing(10)
@@ -153,10 +154,12 @@ impl Styling {
column!["Scroll me!", space::vertical().height(800), "You did it!"]
.padding(10),
)
+ .auto_scroll(true)
.width(Fill)
.height(100);
- let checkbox = checkbox("Check me!", self.checkbox_value)
+ let checkbox = checkbox(self.checkbox_value)
+ .label("Check me!")
.on_toggle(Message::CheckboxToggled);
let toggler = toggler(self.toggler_value)