summaryrefslogtreecommitdiffstats
path: root/examples/todos
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-30 23:40:33 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-30 23:40:33 +0100
commit67408311f45d341509538f8cc185978da66b6ace (patch)
tree27b020da7eda4c77f07000e49335f5e0d482feba /examples/todos
parent9f29aec128ccf51c620a8b69a9fbd64186ab8c65 (diff)
downloadiced-67408311f45d341509538f8cc185978da66b6ace.tar.gz
iced-67408311f45d341509538f8cc185978da66b6ace.tar.bz2
iced-67408311f45d341509538f8cc185978da66b6ace.zip
Use actual floats for logical coordinates
Diffstat (limited to 'examples/todos')
-rw-r--r--examples/todos/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index a7ba69b9..4dac032c 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -8,7 +8,7 @@ use iced::widget::{
};
use iced::window;
use iced::{Application, Element};
-use iced::{Color, Command, Length, Settings, Subscription};
+use iced::{Color, Command, Length, Settings, Size, Subscription};
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
@@ -22,7 +22,7 @@ pub fn main() -> iced::Result {
Todos::run(Settings {
window: window::Settings {
- size: (500, 800),
+ size: Size::new(500.0, 800.0),
..window::Settings::default()
},
..Settings::default()