Skip to content

Commit

Permalink
ui: add iced_lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Jun 7, 2022
1 parent 0859e52 commit 6a3cc4b
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
77 changes: 77 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ resolver = "2"

[dependencies]
iced = { version = "0.4", default-features= false, features = ["wgpu", "svg"] }
iced_lazy = "0.1"
7 changes: 7 additions & 0 deletions ui/src/component/collapse.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use iced::button::State;
use iced_lazy::Component;

pub struct Collapse<'a> {
button: &'a mut State,
collapsed: bool,
}
1 change: 1 addition & 0 deletions ui/src/component/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pub mod badge;
pub mod button;
pub mod collapse;
pub mod form;
pub mod image;
pub mod notification;
Expand Down

0 comments on commit 6a3cc4b

Please sign in to comment.