From 5fae6e59ffbc5913761df638dc7f0c35b7f43bc9 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 20 Sep 2021 14:33:02 +0700 Subject: Introduce and use `CrossAlign` enum for `Column` and `Row` --- examples/todos/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/todos/src') 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", -- cgit