diff options
| author | 2024-03-04 20:42:37 +0100 | |
|---|---|---|
| committer | 2024-03-04 20:42:37 +0100 | |
| commit | f4a4845ddbdced81ae4ff60bfa19f0e602d84709 (patch) | |
| tree | b532017384eb9e43e57bf73be372aea0d55af652 /examples/stopwatch | |
| parent | db92e1c942154bee474fee5e2c187f8a52a1bb96 (diff) | |
| download | iced-f4a4845ddbdced81ae4ff60bfa19f0e602d84709.tar.gz iced-f4a4845ddbdced81ae4ff60bfa19f0e602d84709.tar.bz2 iced-f4a4845ddbdced81ae4ff60bfa19f0e602d84709.zip | |
Simplify theming for `Button` widget
Diffstat (limited to '')
| -rw-r--r-- | examples/stopwatch/src/main.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs index 8a0674c1..7a097e90 100644 --- a/examples/stopwatch/src/main.rs +++ b/examples/stopwatch/src/main.rs @@ -1,11 +1,11 @@  use iced::alignment;  use iced::executor;  use iced::keyboard; -use iced::theme::{self, Theme};  use iced::time;  use iced::widget::{button, column, container, row, text};  use iced::{      Alignment, Application, Command, Element, Length, Settings, Subscription, +    Theme,  };  use std::time::{Duration, Instant}; @@ -136,7 +136,7 @@ impl Application for Stopwatch {          };          let reset_button = button("Reset") -            .style(theme::Button::Destructive) +            .style(button::destructive)              .on_press(Message::Reset);          let controls = row![toggle_button, reset_button].spacing(20); | 
