diff options
Diffstat (limited to 'examples/solar_system/src/main.rs')
| -rw-r--r-- | examples/solar_system/src/main.rs | 15 | 
1 files changed, 5 insertions, 10 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index a58ca683..4cc625da 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -9,7 +9,6 @@  use iced::application;  use iced::executor;  use iced::mouse; -use iced::theme::{self, Theme};  use iced::widget::canvas;  use iced::widget::canvas::gradient;  use iced::widget::canvas::stroke::{self, Stroke}; @@ -17,7 +16,7 @@ use iced::widget::canvas::Path;  use iced::window;  use iced::{      Application, Color, Command, Element, Length, Point, Rectangle, Renderer, -    Settings, Size, Subscription, Vector, +    Settings, Size, Subscription, Theme, Vector,  };  use std::time::Instant; @@ -80,15 +79,11 @@ impl Application for SolarSystem {          Theme::Dark      } -    fn style(&self) -> theme::Application { -        fn dark_background(_theme: &Theme) -> application::Appearance { -            application::Appearance { -                background_color: Color::BLACK, -                text_color: Color::WHITE, -            } +    fn style(&self, _theme: &Theme) -> application::Appearance { +        application::Appearance { +            background_color: Color::BLACK, +            text_color: Color::WHITE,          } - -        theme::Application::custom(dark_background)      }      fn subscription(&self) -> Subscription<Message> {  | 
