diff options
| author | pml68 <contact@pml68.dev> | 2025-03-30 20:16:48 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-04-15 23:46:01 +0200 |
| commit | bbc151e82b86bf2d7114f0ea05cde7e8858ba610 (patch) | |
| tree | 0a84e9d2d251c475bbdfe646b0855f965bb718b0 /src/main.rs | |
| parent | feat: add custom theme struct with dark and light variants (diff) | |
| download | iced-builder-bbc151e82b86bf2d7114f0ea05cde7e8858ba610.tar.gz | |
feat: add shadow color, impl `button::Catalog` and `text::Catalog`
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index c8a60c6..7728e63 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,6 +35,8 @@ use types::{ Project, }; +//pub type Element<'a, Message> = iced::Element<'a, Message, OtherTheme>; + fn main() -> Result<(), Box<dyn std::error::Error>> { let version = std::env::args() .nth(1) @@ -58,7 +60,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { iced::application(App::title, App::update, App::view) .font(icon::FONT) .theme(|state| state.theme.value().clone()) + //.theme(|_| theme::LIGHT.clone()) .subscription(App::subscription) + .antialiasing(true) .run_with(move || App::new(config_load))?; Ok(()) } @@ -445,5 +449,21 @@ impl App { Animation::new(&self.theme, content) .on_update(Message::SwitchTheme) .into() + //row![ + // button("filled") + // .style(theme::button::filled) + // .on_press(Message::RefreshEditorContent), + // button("elevated") + // .style(theme::button::elevated) + // .on_press(Message::RefreshEditorContent), + // button("filled tonal") + // .style(theme::button::filled_tonal) + // .on_press(Message::RefreshEditorContent), + // button("outlined") + // .style(theme::button::outlined) + // .on_press(Message::RefreshEditorContent), + //] + //.spacing(10) + //.into() } } |
