summaryrefslogtreecommitdiffstats
path: root/examples/pokedex
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pokedex')
-rw-r--r--examples/pokedex/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs
index 4b0e913d..89d865e4 100644
--- a/examples/pokedex/src/main.rs
+++ b/examples/pokedex/src/main.rs
@@ -2,7 +2,7 @@ use iced::button;
use iced::futures;
use iced::image;
use iced::{
- Alignment, Application, Button, Column, Command, Container, Element,
+ Alignment, Application, Button, Color, Column, Command, Container, Element,
Length, Row, Settings, Text, Theme,
};
@@ -143,7 +143,7 @@ impl Pokemon {
.push(
Text::new(format!("#{}", self.number))
.size(20)
- .color([0.5, 0.5, 0.5]),
+ .style(Color::from([0.5, 0.5, 0.5])),
),
)
.push(Text::new(&self.description)),