summaryrefslogtreecommitdiffstats
path: root/examples/tour/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-11 23:17:07 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-11 23:17:07 +0700
commitecb3df8e018930c407e469ce2b8f4208a9d15426 (patch)
tree9370945e6c5092e2730ec6835fa6c0556622ca9d /examples/tour/src
parent01c5004959c9b11f2580840f4553ad7d706f4564 (diff)
downloadiced-ecb3df8e018930c407e469ce2b8f4208a9d15426.tar.gz
iced-ecb3df8e018930c407e469ce2b8f4208a9d15426.tar.bz2
iced-ecb3df8e018930c407e469ce2b8f4208a9d15426.zip
Expose reusable `Button` logic
... and reuse it in `iced_pure`!
Diffstat (limited to 'examples/tour/src')
-rw-r--r--examples/tour/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index d4b41310..b01a1ce2 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -726,7 +726,7 @@ fn button<'a, Message: Clone>(
Text::new(label).horizontal_alignment(alignment::Horizontal::Center),
)
.padding(12)
- .min_width(100)
+ .width(Length::Units(100))
}
fn color_slider(