summaryrefslogtreecommitdiffstats
path: root/examples/tour/src/tour.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-20 19:15:31 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-09-20 19:15:31 +0200
commitb9e0f7494881ad7cdfbcbc16878ecc6ef717753f (patch)
treec8a7419b5cb4c0161306c479b93038f2f86498c2 /examples/tour/src/tour.rs
parentb83a4b42dd912b5f59d40e7d4f7f7ccdabc43019 (diff)
downloadiced-b9e0f7494881ad7cdfbcbc16878ecc6ef717753f.tar.gz
iced-b9e0f7494881ad7cdfbcbc16878ecc6ef717753f.tar.bz2
iced-b9e0f7494881ad7cdfbcbc16878ecc6ef717753f.zip
Create `iced_core` and `iced_native`
Diffstat (limited to '')
-rw-r--r--examples/tour/src/tour.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/tour/src/tour.rs b/examples/tour/src/tour.rs
index 4bd7c8a3..fd9c2dde 100644
--- a/examples/tour/src/tour.rs
+++ b/examples/tour/src/tour.rs
@@ -1,6 +1,6 @@
use crate::widget::{
button, slider, text::HorizontalAlignment, Align, Button, Checkbox, Color,
- Column, Element, Image, Radio, Row, Slider, Text,
+ Column, Element, Image, Length, Radio, Row, Slider, Text,
};
pub struct Tour {
@@ -16,7 +16,7 @@ impl Tour {
steps: Steps::new(),
back_button: button::State::new(),
next_button: button::State::new(),
- debug: false,
+ debug: true,
}
}
@@ -61,7 +61,7 @@ impl Tour {
}
let element: Element<_> = Column::new()
- .max_width(500)
+ .max_width(Length::Units(500))
.spacing(20)
.push(steps.view(self.debug).map(Message::StepMessage))
.push(controls)
@@ -478,7 +478,7 @@ impl<'a> Step {
.push(Text::new("An image that tries to keep its aspect ratio."))
.push(
Image::new("resources/ferris.png")
- .width(width)
+ .width(Length::Units(width))
.align_self(Align::Center),
)
.push(Slider::new(