Allow Application configuration with Settings
This commit is contained in:
parent
e72b5ceeb8
commit
d70021fa68
9 changed files with 98 additions and 19 deletions
|
|
@ -1,12 +1,12 @@
|
|||
use iced::{
|
||||
button, scrollable, text_input, Align, Application, Background, Button,
|
||||
Checkbox, Color, Column, Command, Container, Element, Font,
|
||||
HorizontalAlignment, Length, Row, Scrollable, Text, TextInput,
|
||||
HorizontalAlignment, Length, Row, Scrollable, Settings, Text, TextInput,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub fn main() {
|
||||
Todos::run()
|
||||
Todos::run(Settings::default())
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
use iced::{
|
||||
button, scrollable, slider, text_input, Background, Button, Checkbox,
|
||||
Color, Column, Container, Element, HorizontalAlignment, Image, Length,
|
||||
Radio, Row, Sandbox, Scrollable, Slider, Text, TextInput,
|
||||
Radio, Row, Sandbox, Scrollable, Settings, Slider, Text, TextInput,
|
||||
};
|
||||
|
||||
pub fn main() {
|
||||
env_logger::init();
|
||||
|
||||
Tour::run()
|
||||
Tour::run(Settings::default())
|
||||
}
|
||||
|
||||
pub struct Tour {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue