diff options
Diffstat (limited to 'examples/styling.rs')
| -rw-r--r-- | examples/styling.rs | 7 |
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) |
