1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! The core widget set: layout containers, the button, the image, the scroll
//! view and the virtual list.
//!
//! The widgets here are built from the [`Panel`](smudge_core::widget::Panel)
//! the core provides, the [`Label`](smudge_text::Label) the text crate
//! provides, and the [`Widget`](smudge_core::widget::Widget) trait directly,
//! styled with theme tokens by default. A theme switch therefore repaints
//! what these widgets show without any extra code.
//!
//! ```
//! use smudge_core::geometry::Size;
//! use smudge_core::style::px;
//! use smudge_widgets::{ButtonExt, button, column, scroll, spacer};
//!
//! let toolbar = column()
//! .width(px(200.0))
//! .gap(Size {
//! width: 8.0,
//! height: 8.0,
//! })
//! .child(button("Save"))
//! .child(button("Cancel").primary())
//! .child(spacer())
//! .child(scroll(column()).height(px(120.0)));
//! ```
pub use ;
pub use ;
pub use ;
pub use ;
pub use virtual_list;
pub use virtual_list_keyed;