Skip to main content

Crate ferroui_controls_color_picker

Crate ferroui_controls_color_picker 

Source
Expand description

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.

Modules§

automation
The automation support of the colour picker.
converters
The value converters of the colour picker (Converters/ of the upstream project): namespace FerroUI.Controls.Converters, and FerroUI.Controls.Primitives.Converters for the two that the primitives use (AccentColorConverter, ContrastBrushConverter).
primitives
The primitives of the colour picker (namespace FerroUI.Controls.Primitives).

Structs§

ColorChangedEventArgs
Holds the details of a ColorChanged event.
ColorPicker
Presents a color for user editing using a spectrum, palette and component sliders within a drop down. Editing is available when the drop down flyout is opened; otherwise, only the preview content area is shown.
ColorView
Presents a color for user editing using a spectrum, palette and component sliders.
FlatColorPalette
Implements a reduced flat design or flat UI color palette.
FlatHalfColorPalette
Implements half of the [FlatColorPalette] for improved usability.
FluentColorPalette
Implements the standard Windows 10 color palette.
MaterialColorPalette
Implements a reduced version of the 2014 Material Design color palette.
MaterialHalfColorPalette
Implements half of the [MaterialColorPalette] for improved usability.
SixteenColorPalette
Implements the standard sixteen color palette from the HTML 4.01 specification.

Enums§

AlphaComponentPosition
Defines the position of a color’s alpha component relative to all other components.
ColorComponent
Defines a specific component within a color model.
ColorModel
Defines the model used to represent colors.
ColorSpectrumComponents
Defines the two HSV color components displayed by a ColorSpectrum.
ColorSpectrumShape
Defines the shape of a ColorSpectrum.
ColorViewTab
Defines a specific tab/page (subview) within the ColorView.
FlatColor
Defines all colors in the FlatColorPalette.
HsvComponent
Defines a specific component in the HSV color model.
MaterialColor
Defines all colors in the MaterialColorPalette.
RgbComponent
Defines a specific component in the RGB color model.

Statics§

ASSEMBLY
What this crate states about itself for markup: its assembly name and the namespaces the XML namespace of the framework maps to (the XmlnsDefinition attributes of the upstream project).

Traits§

ColorViewImpl
The overridable members introduced by the class.
IColorPalette
Interface to define a color palette.

Functions§

register_types
Registers the namespaces, the types, the assembly and the compiled markup of this crate (and of the crates it is built on), and with the feature document-assets the theme documents as assets. Cheap and idempotent.