summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-25 05:01:18 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-25 05:01:18 +0200
commit03eda9b162012c503ead649e5ccb95b7ef1d10ed (patch)
treea134dbab97011c0a465f4527d2ae0bb771f51554 /examples
parent2cfb307f8c3927a0876c6b754a5d7d673b9edfee (diff)
downloadiced-03eda9b162012c503ead649e5ccb95b7ef1d10ed.tar.gz
iced-03eda9b162012c503ead649e5ccb95b7ef1d10ed.tar.bz2
iced-03eda9b162012c503ead649e5ccb95b7ef1d10ed.zip
Let a `Theme` control the background color of an application
... and remove `Application::background_color`
Diffstat (limited to 'examples')
-rw-r--r--examples/pure/game_of_life/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/pure/game_of_life/src/main.rs b/examples/pure/game_of_life/src/main.rs
index a3e46888..0eded2ce 100644
--- a/examples/pure/game_of_life/src/main.rs
+++ b/examples/pure/game_of_life/src/main.rs
@@ -12,7 +12,7 @@ use iced::pure::{Application, Element};
use iced::theme::{self, Theme};
use iced::time;
use iced::window;
-use iced::{Alignment, Color, Command, Length, Settings, Subscription};
+use iced::{Alignment, Command, Length, Settings, Subscription};
use preset::Preset;
use std::time::{Duration, Instant};
@@ -71,10 +71,6 @@ impl Application for GameOfLife {
String::from("Game of Life - Iced")
}
- fn background_color(&self) -> Color {
- style::BACKGROUND
- }
-
fn update(&mut self, message: Message) -> Command<Message> {
match message {
Message::Grid(message, version) => {