diff options
author | 2022-06-29 10:51:01 +0200 | |
---|---|---|
committer | 2022-06-29 10:51:01 +0200 | |
commit | 1dd1a2f97fc747e15e12b5188dad6c41b0d052ea (patch) | |
tree | ba2b24b9c8dec02b9232068dee299ca27a4823ba /examples/pokedex | |
parent | c807abdfd70c49b0c93868c12f142a2fb4c08036 (diff) | |
download | iced-1dd1a2f97fc747e15e12b5188dad6c41b0d052ea.tar.gz iced-1dd1a2f97fc747e15e12b5188dad6c41b0d052ea.tar.bz2 iced-1dd1a2f97fc747e15e12b5188dad6c41b0d052ea.zip |
Introduce `StyleSheet` for `Text` widget
Diffstat (limited to 'examples/pokedex')
-rw-r--r-- | examples/pokedex/src/main.rs | 4 |
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)), |