summaryrefslogtreecommitdiffstats
path: root/examples/tour
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@lich.io>2021-06-03 20:35:26 +0700
committerLibravatar Héctor Ramón <hector@lich.io>2021-06-03 20:35:26 +0700
commitd3d6f3efb33f601ff3fca4a6496cfeef052501ee (patch)
tree00182b32b48a2584aceafd3c9ad1947535ed1893 /examples/tour
parentef5f46bcddffb191bde5dd2df131bdd1197a1e69 (diff)
downloadiced-d3d6f3efb33f601ff3fca4a6496cfeef052501ee.tar.gz
iced-d3d6f3efb33f601ff3fca4a6496cfeef052501ee.tar.bz2
iced-d3d6f3efb33f601ff3fca4a6496cfeef052501ee.zip
Add some horizontal padding to `toggler` section in `tour` example
Diffstat (limited to 'examples/tour')
-rw-r--r--examples/tour/src/main.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index de935444..1215f83d 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -565,11 +565,14 @@ impl<'a> Step {
.push(Text::new(
"A toggler is mostly used to enable or disable something.",
))
- .push(Toggler::new(
- can_continue,
- String::from("Toggle me to continue..."),
- StepMessage::TogglerChanged,
- ))
+ .push(
+ Container::new(Toggler::new(
+ can_continue,
+ String::from("Toggle me to continue..."),
+ StepMessage::TogglerChanged,
+ ))
+ .padding([0, 40]),
+ )
}
fn image(