diff options
author | 2021-09-20 14:33:02 +0700 | |
---|---|---|
committer | 2021-09-20 15:12:43 +0700 | |
commit | 5fae6e59ffbc5913761df638dc7f0c35b7f43bc9 (patch) | |
tree | 02cbacf17780d1df9e37b38a33c0f882ab9312d7 /examples/todos | |
parent | 95e4791a1e4611f0db703ac2911f56b391469b5f (diff) | |
download | iced-5fae6e59ffbc5913761df638dc7f0c35b7f43bc9.tar.gz iced-5fae6e59ffbc5913761df638dc7f0c35b7f43bc9.tar.bz2 iced-5fae6e59ffbc5913761df638dc7f0c35b7f43bc9.zip |
Introduce and use `CrossAlign` enum for `Column` and `Row`
Diffstat (limited to 'examples/todos')
-rw-r--r-- | examples/todos/src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 7a8ecc1a..6e798f32 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -1,6 +1,6 @@ use iced::{ - button, scrollable, text_input, Align, Application, Button, Checkbox, - Column, Command, Container, Element, Font, HorizontalAlignment, Length, + button, scrollable, text_input, Application, Button, Checkbox, Column, + Command, Container, CrossAlign, Element, Font, HorizontalAlignment, Length, Row, Scrollable, Settings, Text, TextInput, }; use serde::{Deserialize, Serialize}; @@ -295,7 +295,7 @@ impl Task { Row::new() .spacing(20) - .align_items(Align::Center) + .align_items(CrossAlign::Center) .push(checkbox) .push( Button::new(edit_button, edit_icon()) @@ -320,7 +320,7 @@ impl Task { Row::new() .spacing(20) - .align_items(Align::Center) + .align_items(CrossAlign::Center) .push(text_input) .push( Button::new( @@ -369,7 +369,7 @@ impl Controls { Row::new() .spacing(20) - .align_items(Align::Center) + .align_items(CrossAlign::Center) .push( Text::new(&format!( "{} {} left", |