diff options
| author | 2019-11-24 11:08:53 +0100 | |
|---|---|---|
| committer | 2019-11-24 11:08:53 +0100 | |
| commit | 5b8f6948bb8b995b54de66572644da2885b7fcd8 (patch) | |
| tree | 1c793b73ec35232098110da5bd7e6e4bd0929500 /examples | |
| parent | b2721661f580283685e8e7a8eb32ab26453d7e8a (diff) | |
| download | iced-5b8f6948bb8b995b54de66572644da2885b7fcd8.tar.gz iced-5b8f6948bb8b995b54de66572644da2885b7fcd8.tar.bz2 iced-5b8f6948bb8b995b54de66572644da2885b7fcd8.zip | |
Add warning on debugger tour section in web
Diffstat (limited to '')
| -rw-r--r-- | examples/tour.rs | 18 | 
1 files changed, 13 insertions, 5 deletions
| diff --git a/examples/tour.rs b/examples/tour.rs index 8dbae2b8..f5d3f28d 100644 --- a/examples/tour.rs +++ b/examples/tour.rs @@ -622,11 +622,19 @@ impl<'a> Step {                  "Give it a shot! Check the following checkbox to be able to \                   see element boundaries.",              )) -            .push(Checkbox::new( -                debug, -                "Explain layout", -                StepMessage::DebugToggled, -            )) +            .push(if cfg!(target_arch = "wasm32") { +                Element::new( +                    Text::new("Not available on web yet!") +                        .color([0.7, 0.7, 0.7]) +                        .horizontal_alignment(HorizontalAlignment::Center), +                ) +            } else { +                Element::new(Checkbox::new( +                    debug, +                    "Explain layout", +                    StepMessage::DebugToggled, +                )) +            })              .push(Text::new("Feel free to go back and take a look."))      } | 
