Skip to main content

material_ui_rs/
lib.rs

1#[cfg(target_os = "android")]
2pub mod android;
3pub mod animation;
4pub mod application;
5#[path = "design/fonts.rs"]
6pub mod fonts;
7mod internal;
8#[path = "design/style/mod.rs"]
9pub mod style;
10#[path = "design/text.rs"]
11pub mod text;
12#[path = "design/theme.rs"]
13mod theme;
14#[path = "design/tokens/mod.rs"]
15pub mod tokens;
16pub mod widget;
17
18pub(crate) use internal::{utils, web_input};
19pub use theme::{
20    ColorQuartet, ColorScheme, Custom, Inverse, Outline, Surface, SurfaceContainer, Theme,
21};
22
23pub use application::{
24    application, window, window_settings, window_with_min_size, with_material_fonts,
25};
26
27/// An [`iced::Element`] that uses the bundled [`Theme`] by default.
28pub type Element<'a, Message, T = crate::Theme, Renderer = iced::Renderer> =
29    iced::Element<'a, Message, T, Renderer>;
30
31/// An [`iced::widget::Container`] that uses the bundled [`Theme`] by default.
32pub type Container<'a, Message, T = crate::Theme, Renderer = iced::Renderer> =
33    iced::widget::Container<'a, Message, T, Renderer>;