FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialColorPalette

    struct · ferroui-controls-color-picker · v0.5.0

    struct MaterialColorPalette
    

    Implements a reduced version of the 2014 Material Design color palette.

    This palette is based on the one outlined here:

    https://material.io/design/color/the-color-system.html#tools-for-picking-colors

    In order to make the palette uniform and rectangular the following alterations were made:

    1. The A100-A700 shades of each color are excluded. These shades do not exist for all colors (brown/gray).
    2. Black/White are stand-alone and are also excluded.

    View source

    Members

    new

    fn new() -> Self
    

    Initializes a new instance of the MaterialColorPalette class.

    Source

    init_color_chart

    fn init_color_chart(self: &Self)
    

    Initializes all color chart colors.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Debug
    • Default
    • IColorPalette
    • PartialEq
    • MarkupTyped

    Availability

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