diff options
author | 2021-09-20 15:09:55 +0700 | |
---|---|---|
committer | 2021-09-20 15:14:08 +0700 | |
commit | a0ad3996225601aaa1ebe051cba115374b55c80e (patch) | |
tree | 8420a91cd319a63b1ed257a6334453a1a673bdfb /examples/pane_grid | |
parent | 5fae6e59ffbc5913761df638dc7f0c35b7f43bc9 (diff) | |
download | iced-a0ad3996225601aaa1ebe051cba115374b55c80e.tar.gz iced-a0ad3996225601aaa1ebe051cba115374b55c80e.tar.bz2 iced-a0ad3996225601aaa1ebe051cba115374b55c80e.zip |
Refactor alignment types into an `alignment` module
Diffstat (limited to 'examples/pane_grid')
-rw-r--r-- | examples/pane_grid/src/main.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/pane_grid/src/main.rs b/examples/pane_grid/src/main.rs index 737c9126..69872bad 100644 --- a/examples/pane_grid/src/main.rs +++ b/examples/pane_grid/src/main.rs @@ -1,8 +1,7 @@ use iced::{ - button, executor, keyboard, pane_grid, scrollable, Application, Button, - Color, Column, Command, Container, CrossAlign, Element, - HorizontalAlignment, Length, PaneGrid, Row, Scrollable, Settings, - Subscription, Text, + alignment, button, executor, keyboard, pane_grid, scrollable, Alignment, + Application, Button, Color, Column, Command, Container, Element, Length, + PaneGrid, Row, Scrollable, Settings, Subscription, Text, }; use iced_native::{event, subscription, Event}; @@ -293,7 +292,7 @@ impl Content { state, Text::new(label) .width(Length::Fill) - .horizontal_alignment(HorizontalAlignment::Center) + .horizontal_alignment(alignment::Horizontal::Center) .size(16), ) .width(Length::Fill) @@ -330,7 +329,7 @@ impl Content { let content = Scrollable::new(scroll) .width(Length::Fill) .spacing(10) - .align_items(CrossAlign::Center) + .align_items(Alignment::Center) .push(controls); Container::new(content) |