summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/modal/src/main.rs2
-rw-r--r--examples/progress_bar/README.md2
-rw-r--r--examples/toast/src/main.rs1
3 files changed, 4 insertions, 1 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs
index 3b69f5e6..acb14372 100644
--- a/examples/modal/src/main.rs
+++ b/examples/modal/src/main.rs
@@ -231,6 +231,7 @@ mod modal {
use iced::mouse;
use iced::{
BorderRadius, Color, Element, Event, Length, Point, Rectangle, Size,
+ Vector,
};
/// A widget that centers a modal element over some base element
@@ -413,6 +414,7 @@ mod modal {
renderer: &Renderer,
_bounds: Size,
position: Point,
+ _translation: Vector,
) -> layout::Node {
let limits = layout::Limits::new(Size::ZERO, self.size)
.width(Length::Fill)
diff --git a/examples/progress_bar/README.md b/examples/progress_bar/README.md
index 1268ac6b..a87829c6 100644
--- a/examples/progress_bar/README.md
+++ b/examples/progress_bar/README.md
@@ -5,7 +5,7 @@ A simple progress bar that can be filled by using a slider.
The __[`main`]__ file contains all the code of the example.
<div align="center">
- <img src="https://iced.rs/examples/pokedex.gif">
+ <img src="https://iced.rs/examples/progress_bar.gif">
</div>
You can run it with `cargo run`:
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs
index 5b089e8a..934049d5 100644
--- a/examples/toast/src/main.rs
+++ b/examples/toast/src/main.rs
@@ -511,6 +511,7 @@ mod toast {
renderer: &Renderer,
bounds: Size,
position: Point,
+ _translation: Vector,
) -> layout::Node {
let limits = layout::Limits::new(Size::ZERO, bounds)
.width(Length::Fill)