summaryrefslogtreecommitdiffstats
path: root/examples/stopwatch
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/stopwatch
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/stopwatch')
-rw-r--r--examples/stopwatch/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs
index dc8a4de7..377d7a2d 100644
--- a/examples/stopwatch/src/main.rs
+++ b/examples/stopwatch/src/main.rs
@@ -105,8 +105,8 @@ impl Application for Stopwatch {
Text::new(label)
.horizontal_alignment(alignment::Horizontal::Center),
)
- .min_width(80)
.padding(10)
+ .width(Length::Units(80))
.style(style)
};