From 281dda733c1ac1836d88a4b14325f067c77ab0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 5 Dec 2025 03:38:28 +0100 Subject: [PATCH] Remove `theme` method in `stopwatch` example --- examples/stopwatch/src/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 - } }