summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/todos.rs4
-rw-r--r--examples/tour.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/todos.rs b/examples/todos.rs
index 5257fc12..4caad949 100644
--- a/examples/todos.rs
+++ b/examples/todos.rs
@@ -1,6 +1,6 @@
use iced::{
scrollable, text::HorizontalAlignment, text_input, Align, Application,
- Checkbox, Color, Column, Element, Length, Scrollable, Text, TextInput,
+ Checkbox, Color, Column, Element, Scrollable, Text, TextInput,
};
pub fn main() {
@@ -77,7 +77,7 @@ impl Application for Todos {
);
let content = Column::new()
- .max_width(Length::Units(800))
+ .max_width(800)
.align_self(Align::Center)
.spacing(20)
.push(title)
diff --git a/examples/tour.rs b/examples/tour.rs
index ac654a5e..9e93170a 100644
--- a/examples/tour.rs
+++ b/examples/tour.rs
@@ -25,7 +25,7 @@ impl Tour {
scroll: scrollable::State::new(),
back_button: button::State::new(),
next_button: button::State::new(),
- debug: false,
+ debug: true,
}
}
}
@@ -79,7 +79,7 @@ impl Application for Tour {
}
let element: Element<_> = Column::new()
- .max_width(Length::Units(540))
+ .max_width(540)
.spacing(20)
.padding(20)
.push(steps.view(self.debug).map(Message::StepMessage))