summaryrefslogtreecommitdiffstats
path: root/examples/pokedex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pokedex.rs')
-rw-r--r--examples/pokedex.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pokedex.rs b/examples/pokedex.rs
index 8e0af7b2..6893bb73 100644
--- a/examples/pokedex.rs
+++ b/examples/pokedex.rs
@@ -1,5 +1,5 @@
use iced::{
- button, image, Align, Application, Background, Button, Color, Column,
+ button, image, Align, Application, Button, Color, Column,
Command, Container, Element, Image, Length, Row, Settings, Text,
};
@@ -225,7 +225,7 @@ impl From<reqwest::Error> for Error {
fn button<'a>(state: &'a mut button::State, text: &str) -> Button<'a, Message> {
Button::new(state, Text::new(text).color(Color::WHITE))
- .background(Background::Color([0.11, 0.42, 0.87].into()))
+ .background(Color::from_rgb(0.11, 0.42, 0.87).into())
.border_radius(10)
.padding(10)
}