Skip to main content

Crate zest_theme

Crate zest_theme 

Source
Expand description

Theme types for the zest GUI framework.

Mirrors libcosmic’s grouped structure:

Theme<'a, C> is generic over a embedded_graphics::pixelcolor::PixelColor and a lifetime for font references (which are typically &'static MonoFont<'static>).

Re-exports§

pub use component::Component;
pub use container::Container;
pub use convert::convert_theme;
pub use corner_radii::CornerRadii;
pub use font::FONT_ZEST_MONO;
pub use font::FONT_ZEST_MONO_CAPTION;
pub use font::FONT_ZEST_MONO_DISPLAY;
pub use font::FONT_ZEST_MONO_HEADING;
pub use palette::Palette;
pub use spacing::Spacing;
pub use style::ButtonAppearance;
pub use style::ButtonCatalog;
pub use style::ButtonClass;
pub use style::Status;
pub use theme::Theme;
pub use typography::Typography;

Modules§

component
Component: per-state colors for an interactive element.
container
Container: colors for a non-interactive region.
convert
Convert themes defined in Rgb888 to any target PixelColor.
corner_radii
CornerRadii: design-system corner-radius scale.
font
Zest default bitmap mono fonts — GENERATED, DO NOT EDIT BY HAND.
palette
Palette: named primitive colors a theme is derived from.
spacing
Spacing: design-system spacing scale in pixels.
style
Catalog/Status/Appearance pattern, modeled on libcosmic but trimmed for embedded touch:
theme
Top-level Theme type plus preset theme modules.
typography
Bitmap typography scale — four monospace font sizes the theme exposes by role, so widgets can ask for theme.typography.display or theme.typography.body without picking a MonoFont constant directly.