Expand description
§native-theme
Cross-platform native theme detection and loading for Rust GUI applications.
Any Rust GUI app can look native on any platform by loading a single theme file or reading live OS settings, without coupling to any specific toolkit.
Re-exports§
pub use icons::IconSetChoice;pub use icons::default_icon_choice;pub use icons::list_freedesktop_themes;pub use pipeline::DiagnosticEntry;pub use pipeline::PlatformPreset;pub use resolve::ResolutionContext;
Modules§
- color
- Color types and sRGB utilities.
- detect
- OS detection: dark mode, reduced motion, DPI, desktop environment. OS detection: dark mode, reduced motion, DPI, desktop environment.
- error
- Error types for theme operations.
- icons
- Icon loading and dispatch. Icon loading and dispatch.
- model
- Theme data model types.
- pipeline
- Theme pipeline: reader -> preset merge -> resolve -> validate. Theme pipeline: reader -> preset merge -> resolve -> validate.
- prelude
- Convenience re-exports for common usage.
- presets
- Bundled theme presets. Bundled theme presets and TOML serialization API.
- resolve
- Theme resolution engine (inheritance + validation).
- theme
- Theme data model: types, defaults, fonts, borders, widgets.
Structs§
- Accessibility
Preferences - OS-detected accessibility preferences.
- System
Theme - Result of the OS-first pipeline. Holds both resolved variants.
Type Aliases§
- Result
- Convenience Result type alias for this crate.