diff options
author | 2019-11-21 13:47:20 +0100 | |
---|---|---|
committer | 2019-11-21 13:47:20 +0100 | |
commit | 65eb218d3d7ba52b2869a586a1480eeb3c8f84e4 (patch) | |
tree | 644f27f40f2f4b8ee1abe7743aac426297503eea /examples/todos.rs | |
parent | d3553adf278e5b616fbd885f321faa83a4d24b56 (diff) | |
download | iced-65eb218d3d7ba52b2869a586a1480eeb3c8f84e4.tar.gz iced-65eb218d3d7ba52b2869a586a1480eeb3c8f84e4.tar.bz2 iced-65eb218d3d7ba52b2869a586a1480eeb3c8f84e4.zip |
Move widgets from `core` to `native` and `web`
Also made fields private and improved `Renderer` traits.
Diffstat (limited to 'examples/todos.rs')
-rw-r--r-- | examples/todos.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/todos.rs b/examples/todos.rs index a1dfc5aa..a73c45ce 100644 --- a/examples/todos.rs +++ b/examples/todos.rs @@ -1,7 +1,7 @@ use iced::{ - button, scrollable, text::HorizontalAlignment, text_input, Align, - Application, Background, Button, Checkbox, Color, Column, Command, - Container, Element, Font, Length, Row, Scrollable, Text, TextInput, + button, scrollable, text_input, Align, Application, Background, Button, + Checkbox, Color, Column, Command, Container, Element, Font, + HorizontalAlignment, Length, Row, Scrollable, Text, TextInput, }; use serde::{Deserialize, Serialize}; @@ -549,7 +549,8 @@ impl SavedState { .map_err(|_| SaveError::WriteError)?; // This is a simple way to save at most once every couple seconds - // We will be able to get rid of it once we implement event subscriptions + // We will be able to get rid of it once we implement event + // subscriptions std::thread::sleep(std::time::Duration::from_secs(2)); Ok(()) |