summaryrefslogtreecommitdiffstats
path: root/examples/tour.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 06:04:05 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 06:04:05 +0100
commit5e018965ee99c44fe50f9be8f7b69cd486d183be (patch)
tree65862c87a2835e71ad074e143efbbb6d665a535b /examples/tour.rs
parent89b1ac6eac03bec9e2acb9b4d59da86e59d26153 (diff)
parent6699329d3f91c5b9d8e8e55ad88de24bd3894955 (diff)
downloadiced-5e018965ee99c44fe50f9be8f7b69cd486d183be.tar.gz
iced-5e018965ee99c44fe50f9be8f7b69cd486d183be.tar.bz2
iced-5e018965ee99c44fe50f9be8f7b69cd486d183be.zip
Merge branch 'master' into feature/custom-styling
Diffstat (limited to 'examples/tour.rs')
-rw-r--r--examples/tour.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/tour.rs b/examples/tour.rs
index 84e5d516..b0ee4d96 100644
--- a/examples/tour.rs
+++ b/examples/tour.rs
@@ -403,6 +403,7 @@ impl<'a> Step {
))
.push(
Text::new(&value.to_string())
+ .width(Length::Fill)
.horizontal_alignment(HorizontalAlignment::Center),
)
}
@@ -449,6 +450,7 @@ impl<'a> Step {
))
.push(
Text::new(&format!("{} px", spacing))
+ .width(Length::Fill)
.horizontal_alignment(HorizontalAlignment::Center),
);
@@ -563,6 +565,7 @@ impl<'a> Step {
))
.push(
Text::new(&format!("Width: {} px", width.to_string()))
+ .width(Length::Fill)
.horizontal_alignment(HorizontalAlignment::Center),
)
}
@@ -582,6 +585,7 @@ impl<'a> Step {
.push(Column::new().height(Length::Units(4096)))
.push(
Text::new("You are halfway there!")
+ .width(Length::Fill)
.size(30)
.horizontal_alignment(HorizontalAlignment::Center),
)
@@ -589,6 +593,7 @@ impl<'a> Step {
.push(ferris(300))
.push(
Text::new("You made it!")
+ .width(Length::Fill)
.size(50)
.horizontal_alignment(HorizontalAlignment::Center),
)
@@ -631,6 +636,7 @@ impl<'a> Step {
} else {
value
})
+ .width(Length::Fill)
.horizontal_alignment(HorizontalAlignment::Center),
)
}