diff options
author | 2022-06-07 04:11:24 +0200 | |
---|---|---|
committer | 2022-06-07 04:11:24 +0200 | |
commit | 97555e67af8b4bcc77df69c5e72156e14948150e (patch) | |
tree | 6af3db6e439fdcb40f94ac9b1db96296fb66e86e /examples/pure/game_of_life | |
parent | 2933ac7355d5c14aa4f04a64a67197cd97e7608c (diff) | |
download | iced-97555e67af8b4bcc77df69c5e72156e14948150e.tar.gz iced-97555e67af8b4bcc77df69c5e72156e14948150e.tar.bz2 iced-97555e67af8b4bcc77df69c5e72156e14948150e.zip |
Implement theme styling for `Container`
Diffstat (limited to 'examples/pure/game_of_life')
-rw-r--r-- | examples/pure/game_of_life/src/main.rs | 1 | ||||
-rw-r--r-- | examples/pure/game_of_life/src/style.rs | 13 |
2 files changed, 1 insertions, 13 deletions
diff --git a/examples/pure/game_of_life/src/main.rs b/examples/pure/game_of_life/src/main.rs index 87c7a204..4db9fbc7 100644 --- a/examples/pure/game_of_life/src/main.rs +++ b/examples/pure/game_of_life/src/main.rs @@ -151,7 +151,6 @@ impl Application for GameOfLife { container(content) .width(Length::Fill) .height(Length::Fill) - .style(style::Container) .into() } } diff --git a/examples/pure/game_of_life/src/style.rs b/examples/pure/game_of_life/src/style.rs index 773b88eb..d1ca5c9b 100644 --- a/examples/pure/game_of_life/src/style.rs +++ b/examples/pure/game_of_life/src/style.rs @@ -1,4 +1,4 @@ -use iced::{container, pick_list, Color}; +use iced::{pick_list, Color}; pub const BACKGROUND: Color = Color::from_rgb( 0x2F as f32 / 255.0, @@ -6,17 +6,6 @@ pub const BACKGROUND: Color = Color::from_rgb( 0x36 as f32 / 255.0, ); -pub struct Container; - -impl container::StyleSheet for Container { - fn style(&self) -> container::Style { - container::Style { - text_color: Some(Color::WHITE), - ..container::Style::default() - } - } -} - pub struct PickList; impl pick_list::StyleSheet for PickList { |