summaryrefslogtreecommitdiffstats
path: root/examples/integration_opengl/src/controls.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-09-20 15:54:19 +0700
committerLibravatar GitHub <noreply@github.com>2021-09-20 15:54:19 +0700
commit35c4ad6dd950fa91d181f4d3253fcb486bcf1b11 (patch)
tree8420a91cd319a63b1ed257a6334453a1a673bdfb /examples/integration_opengl/src/controls.rs
parent456a3f15e4226cc781a8825bddaaf066476d4351 (diff)
parenta0ad3996225601aaa1ebe051cba115374b55c80e (diff)
downloadiced-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/integration_opengl/src/controls.rs')
-rw-r--r--examples/integration_opengl/src/controls.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/integration_opengl/src/controls.rs b/examples/integration_opengl/src/controls.rs
index ddc6827c..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, Align, Color, Column, Command, 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(Align::End)
+ .align_items(Alignment::End)
.push(
Column::new()
.width(Length::Fill)
- .align_items(Align::End)
+ .align_items(Alignment::End)
.push(
Column::new()
.padding(10)