FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ferroui_controls_color_picker

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

    module ferroui_controls_color_picker
    

    ferroui-controls-color-picker

    The colour picker library: the drop-down ColorPicker, the ColorView it presents, the primitives they are built from (ColorSpectrum, ColorSlider, ColorPreviewer), the colour palettes, the value converters of their control themes and the automation peer of the spectrum.

    The control themes are not part of the base themes: an application includes the styles of the library for its theme, as upstream:

    <StyleInclude Source="ferres://FerroUI.Controls.ColorPicker/Themes/Fluent/Fluent.xaml" />
    

    The theme documents are compiled by the build of the crate (build.rs): register_types registers the loader table of the compiled markup, which answers a load of a document of the assembly FerroUI.Controls.ColorPicker by its URI, and the build of an application whose markup is compiled links an include of the styles to their compiled markup. A compiled document is not an asset of the assembly, as upstream's compiler removes a compiled resource; with the feature document-assets the documents are embedded as assets too, which is what lets a document loaded at run time include them (build.rs says why). The crate does not link the run-time XAML loader.

    View source

    Contents

    Availability

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