FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialColorSpec

    enum · ferroui-themes-material · v0.5.0

    enum MaterialColorSpec
    

    Source-spec selection for locally generated phone schemes. The default is exactly Google's DynamicScheme.DEFAULT_SPEC_VERSION at the pinned commit. This never changes imported Android colors or the AndroidX baseline schemes.

    View source

    Members

    Spec2021

    Spec2021
    

    Source

    Spec2025

    Spec2025
    

    Source

    Spec2026

    Spec2026
    

    Source

    effective_for

    const fn effective_for(self: Self, style: MaterialPaletteStyle) -> Self
    

    Apply Google's supported-variant fallback. The 2026 spec introduces a separate CMF multi-source variant, which this single-seed API does not expose. For these nine phone styles its results are identical to 2025.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Equivalent<K>
    • CastableFrom<ST, Uninit, Uninit>
    • CastableFrom<ST, Initialized, Initialized>
    • Read<Exclusive, BecauseExclusive>
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.