summaryrefslogtreecommitdiffstats
path: root/examples/styling
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-21 18:07:26 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-21 18:07:26 +0200
commitb38f7d28372712e345672515d8c1643bc040c1f1 (patch)
tree9a91622b7d63ae9feac84064ea6d28fc5d068b03 /examples/styling
parent59bb5a99aaefa13f01735e0b6b127fa498be902f (diff)
downloadiced-b38f7d28372712e345672515d8c1643bc040c1f1.tar.gz
iced-b38f7d28372712e345672515d8c1643bc040c1f1.tar.bz2
iced-b38f7d28372712e345672515d8c1643bc040c1f1.zip
Center `Submit` button vertically in `styling` example
Diffstat (limited to 'examples/styling')
-rw-r--r--examples/styling/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs
index e2015bac..f8a4c80a 100644
--- a/examples/styling/src/main.rs
+++ b/examples/styling/src/main.rs
@@ -127,7 +127,9 @@ impl Sandbox for Styling {
let content = column![
choose_theme,
horizontal_rule(38),
- row![text_input, button].spacing(10),
+ row![text_input, button]
+ .spacing(10)
+ .align_items(Alignment::Center),
slider,
progress_bar,
row![