diff options
| author | 2021-09-20 15:54:19 +0700 | |
|---|---|---|
| committer | 2021-09-20 15:54:19 +0700 | |
| commit | 35c4ad6dd950fa91d181f4d3253fcb486bcf1b11 (patch) | |
| tree | 8420a91cd319a63b1ed257a6334453a1a673bdfb /examples/download_progress | |
| parent | 456a3f15e4226cc781a8825bddaaf066476d4351 (diff) | |
| parent | a0ad3996225601aaa1ebe051cba115374b55c80e (diff) | |
| download | iced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.tar.gz iced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.tar.bz2 iced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.zip | |
Merge pull request #1044 from tarkah/feature/align-fill-variant
Add Align::Fill variant
Diffstat (limited to '')
| -rw-r--r-- | examples/download_progress/src/main.rs | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/examples/download_progress/src/main.rs b/examples/download_progress/src/main.rs index cd024926..21804a0a 100644 --- a/examples/download_progress/src/main.rs +++ b/examples/download_progress/src/main.rs @@ -1,6 +1,6 @@  use iced::{ -    button, executor, Align, Application, Button, Column, Command, Container, -    Element, Length, ProgressBar, Settings, Subscription, Text, +    button, executor, Alignment, Application, Button, Column, Command, +    Container, Element, Length, ProgressBar, Settings, Subscription, Text,  };  mod download; @@ -83,7 +83,7 @@ impl Application for Example {                      .on_press(Message::Add)                      .padding(10),              ) -            .align_items(Align::End); +            .align_items(Alignment::End);          Container::new(downloads)              .width(Length::Fill) @@ -182,7 +182,7 @@ impl Download {              }              State::Finished { button } => Column::new()                  .spacing(10) -                .align_items(Align::Center) +                .align_items(Alignment::Center)                  .push(Text::new("Download finished!"))                  .push(                      Button::new(button, Text::new("Start again")) @@ -195,7 +195,7 @@ impl Download {              }              State::Errored { button } => Column::new()                  .spacing(10) -                .align_items(Align::Center) +                .align_items(Alignment::Center)                  .push(Text::new("Something went wrong :("))                  .push(                      Button::new(button, Text::new("Try again")) @@ -207,7 +207,7 @@ impl Download {          Column::new()              .spacing(10)              .padding(10) -            .align_items(Align::Center) +            .align_items(Alignment::Center)              .push(progress_bar)              .push(control)              .into() | 
