diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs index c3beb338..1fbec9a0 100644 --- a/examples/stopwatch/src/main.rs +++ b/examples/stopwatch/src/main.rs @@ -1,12 +1,11 @@ use iced::keyboard; use iced::time::{self, Duration, Instant, milliseconds}; use iced::widget::{button, center, column, row, text}; -use iced::{Center, Element, Subscription, Theme}; +use iced::{Center, Element, Subscription}; pub fn main() -> iced::Result { iced::application(Stopwatch::default, Stopwatch::update, Stopwatch::view) .subscription(Stopwatch::subscription) - .theme(Stopwatch::theme) .run() } @@ -124,8 +123,4 @@ impl Stopwatch { center(content).into() } - - fn theme(&self) -> Theme { - Theme::Dark - } }