diff options
author | 2021-09-20 15:09:55 +0700 | |
---|---|---|
committer | 2021-09-20 15:14:08 +0700 | |
commit | a0ad3996225601aaa1ebe051cba115374b55c80e (patch) | |
tree | 8420a91cd319a63b1ed257a6334453a1a673bdfb /examples/integration_opengl | |
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/integration_opengl')
-rw-r--r-- | examples/integration_opengl/src/controls.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/integration_opengl/src/controls.rs b/examples/integration_opengl/src/controls.rs index ebf64d43..fa5aa91d 100644 --- a/examples/integration_opengl/src/controls.rs +++ b/examples/integration_opengl/src/controls.rs @@ -1,7 +1,8 @@ use iced_glow::Renderer; +use iced_glutin::slider; use iced_glutin::{ - slider, Color, Column, Command, CrossAlign, Element, Length, Program, Row, - Slider, Text, + Alignment, Color, Column, Command, Element, Length, Program, Row, Slider, + Text, }; pub struct Controls { @@ -79,11 +80,11 @@ impl Program for Controls { Row::new() .width(Length::Fill) .height(Length::Fill) - .align_items(CrossAlign::End) + .align_items(Alignment::End) .push( Column::new() .width(Length::Fill) - .align_items(CrossAlign::End) + .align_items(Alignment::End) .push( Column::new() .padding(10) |