diff options
author | 2023-10-02 20:18:15 +0200 | |
---|---|---|
committer | 2024-02-01 13:16:28 +0100 | |
commit | b5f1ca169567f47b3976de5b4c5a2b1ce37656d5 (patch) | |
tree | 326fae951f16d98ba6141e6cd20d6e7d02e8c71d /examples/custom_shader/src/main.rs | |
parent | b95f3ab12f863f4de668e4e6f8a75b7d3acdf2b7 (diff) | |
download | iced-b5f1ca169567f47b3976de5b4c5a2b1ce37656d5.tar.gz iced-b5f1ca169567f47b3976de5b4c5a2b1ce37656d5.tar.bz2 iced-b5f1ca169567f47b3976de5b4c5a2b1ce37656d5.zip |
Introduce support for disabling a `checkbox`
Diffstat (limited to 'examples/custom_shader/src/main.rs')
-rw-r--r-- | examples/custom_shader/src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/custom_shader/src/main.rs b/examples/custom_shader/src/main.rs index 78b2fbbb..9e8da3ba 100644 --- a/examples/custom_shader/src/main.rs +++ b/examples/custom_shader/src/main.rs @@ -89,11 +89,8 @@ impl Application for IcedCubes { .step(0.01) .width(100), ), - checkbox( - "Show Depth Buffer", - self.scene.show_depth_buffer, - Message::ShowDepthBuffer - ), + checkbox("Show Depth Buffer", self.scene.show_depth_buffer) + .on_toggle(Message::ShowDepthBuffer), ] .spacing(40); |