Use actual floats for logical coordinates
This commit is contained in:
parent
9f29aec128
commit
67408311f4
12 changed files with 165 additions and 136 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue