diff options
author | 2021-09-20 15:54:19 +0700 | |
---|---|---|
committer | 2021-09-20 15:54:19 +0700 | |
commit | 35c4ad6dd950fa91d181f4d3253fcb486bcf1b11 (patch) | |
tree | 8420a91cd319a63b1ed257a6334453a1a673bdfb /examples/events/src/main.rs | |
parent | 456a3f15e4226cc781a8825bddaaf066476d4351 (diff) | |
parent | a0ad3996225601aaa1ebe051cba115374b55c80e (diff) | |
download | iced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.tar.gz iced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.tar.bz2 iced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.zip |
Merge pull request #1044 from tarkah/feature/align-fill-variant
Add Align::Fill variant
Diffstat (limited to 'examples/events/src/main.rs')
-rw-r--r-- | examples/events/src/main.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/events/src/main.rs b/examples/events/src/main.rs index 911ff425..7f024c56 100644 --- a/examples/events/src/main.rs +++ b/examples/events/src/main.rs @@ -1,7 +1,6 @@ use iced::{ - button, executor, Align, Application, Button, Checkbox, Column, Command, - Container, Element, HorizontalAlignment, Length, Settings, Subscription, - Text, + alignment, button, executor, Alignment, Application, Button, Checkbox, + Column, Command, Container, Element, Length, Settings, Subscription, Text, }; use iced_native::{window, Event}; @@ -91,14 +90,14 @@ impl Application for Events { &mut self.exit, Text::new("Exit") .width(Length::Fill) - .horizontal_alignment(HorizontalAlignment::Center), + .horizontal_alignment(alignment::Horizontal::Center), ) .width(Length::Units(100)) .padding(10) .on_press(Message::Exit); let content = Column::new() - .align_items(Align::Center) + .align_items(Alignment::Center) .spacing(20) .push(events) .push(toggle) |