diff options
author | 2024-02-22 09:24:13 +0100 | |
---|---|---|
committer | 2024-02-22 09:24:13 +0100 | |
commit | ce4eef64cdde5f3e5809c963a1d84c933d27e7ae (patch) | |
tree | 6d4b9bf8c304ed2614580b79081ddaea6180c25a /examples/tour/src/main.rs | |
parent | 6c00e615b9fb7618c710a3f5d920d00e6b8a258c (diff) | |
download | iced-ce4eef64cdde5f3e5809c963a1d84c933d27e7ae.tar.gz iced-ce4eef64cdde5f3e5809c963a1d84c933d27e7ae.tar.bz2 iced-ce4eef64cdde5f3e5809c963a1d84c933d27e7ae.zip |
Enable layout debugger for Wasm builds in `tour` example
Diffstat (limited to '')
-rw-r--r-- | examples/tour/src/main.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 588abbe8..1e2f1ef8 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -643,17 +643,10 @@ impl<'a> Step { "Give it a shot! Check the following checkbox to be able to \ see element boundaries.", ) - .push(if cfg!(target_arch = "wasm32") { - Element::new( - text("Not available on web yet!") - .style(Color::from([0.7, 0.7, 0.7])) - .horizontal_alignment(alignment::Horizontal::Center), - ) - } else { + .push( checkbox("Explain layout", debug) - .on_toggle(StepMessage::DebugToggled) - .into() - }) + .on_toggle(StepMessage::DebugToggled), + ) .push("Feel free to go back and take a look.") } |