Remove theme method in stopwatch example
This commit is contained in:
parent
ee3b3c86eb
commit
281dda733c
1 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue