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/bezier_tool/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/bezier_tool/src') diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs index b17f5726..35b5182c 100644 --- a/examples/bezier_tool/src/main.rs +++ b/examples/bezier_tool/src/main.rs @@ -1,7 +1,6 @@ //! This example showcases an interactive `Canvas` for drawing Bézier curves. use iced::{ - button, Button, Column, CrossAlign, Element, Length, Sandbox, Settings, - Text, + button, Alignment, Button, Column, Element, Length, Sandbox, Settings, Text, }; pub fn main() -> iced::Result { @@ -52,7 +51,7 @@ impl Sandbox for Example { Column::new() .padding(20) .spacing(20) - .align_items(CrossAlign::Center) + .align_items(Alignment::Center) .push( Text::new("Bezier tool example") .width(Length::Shrink) -- cgit