Add font-family to Text style in iced_web

This commit is contained in:
Héctor Ramón Jiménez 2020-02-06 05:03:11 +01:00
parent ad500441af
commit f719ba3f4e
2 changed files with 7 additions and 2 deletions

View file

@ -79,6 +79,7 @@ impl Application for Pokedex {
fn view(&mut self) -> Element<Message> {
let content = match self {
Pokedex::Loading => Column::new()
.width(Length::Shrink)
.push(Text::new("Searching for Pokémon...").size(40)),
Pokedex::Loaded { pokemon, search } => Column::new()
.max_width(500)