diff options
Diffstat (limited to '')
| -rw-r--r-- | examples/pokedex/src/main.rs | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs index 8b71a269..193f85f2 100644 --- a/examples/pokedex/src/main.rs +++ b/examples/pokedex/src/main.rs @@ -1,8 +1,6 @@  use iced::futures;  use iced::widget::{self, column, container, image, row, text}; -use iced::{ -    Alignment, Application, Color, Command, Element, Length, Settings, Theme, -}; +use iced::{Alignment, Application, Command, Element, Length, Settings, Theme};  pub fn main() -> iced::Result {      Pokedex::run(Settings::default()) @@ -116,7 +114,7 @@ impl Pokemon {                      text(&self.name).size(30).width(Length::Fill),                      text(format!("#{}", self.number))                          .size(20) -                        .style(Color::from([0.5, 0.5, 0.5])), +                        .color([0.5, 0.5, 0.5]),                  ]                  .align_items(Alignment::Center)                  .spacing(20), | 
