Introduce StyleSheet for Text widget
This commit is contained in:
parent
c807abdfd7
commit
1dd1a2f97f
28 changed files with 183 additions and 87 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue