From 1dd1a2f97fc747e15e12b5188dad6c41b0d052ea Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 29 Jun 2022 10:51:01 +0200 Subject: Introduce `StyleSheet` for `Text` widget --- examples/pokedex/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/pokedex/src/main.rs') 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)), -- cgit