From a0ad3996225601aaa1ebe051cba115374b55c80e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 20 Sep 2021 15:09:55 +0700 Subject: Refactor alignment types into an `alignment` module --- examples/styling/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/styling/src/main.rs') diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs index 4a004f3f..81d33ad3 100644 --- a/examples/styling/src/main.rs +++ b/examples/styling/src/main.rs @@ -1,7 +1,7 @@ use iced::{ - button, scrollable, slider, text_input, Button, Checkbox, Column, - Container, CrossAlign, Element, Length, ProgressBar, Radio, Row, Rule, - Sandbox, Scrollable, Settings, Slider, Space, Text, TextInput, Toggler, + button, scrollable, slider, text_input, Alignment, Button, Checkbox, + Column, Container, Element, Length, ProgressBar, Radio, Row, Rule, Sandbox, + Scrollable, Settings, Slider, Space, Text, TextInput, Toggler, }; pub fn main() -> iced::Result { @@ -132,7 +132,7 @@ impl Sandbox for Styling { Row::new() .spacing(10) .height(Length::Units(100)) - .align_items(CrossAlign::Center) + .align_items(Alignment::Center) .push(scrollable) .push(Rule::vertical(38).style(self.theme)) .push( -- cgit