summaryrefslogtreecommitdiffstats
path: root/examples/styling
diff options
context:
space:
mode:
Diffstat (limited to 'examples/styling')
-rw-r--r--examples/styling/src/main.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs
index 10f3c79d..4718a123 100644
--- a/examples/styling/src/main.rs
+++ b/examples/styling/src/main.rs
@@ -115,11 +115,8 @@ impl Sandbox for Styling {
.width(Length::Fill)
.height(100);
- let checkbox = checkbox(
- "Check me!",
- self.checkbox_value,
- Message::CheckboxToggled,
- );
+ let checkbox = checkbox("Check me!", self.checkbox_value)
+ .on_toggle(Message::CheckboxToggled);
let toggler = toggler(
String::from("Toggle me!"),