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): namespaceFerroUI.Controls.Converters, andFerroUI.Controls.Primitives.Convertersfor the two that the primitives use (AccentColorConverter,ContrastBrushConverter). - primitives
- The primitives of the colour picker (namespace
FerroUI.Controls.Primitives).
Structs§
- Color
Changed Event Args - Holds the details of a ColorChanged event.
- Color
Picker - 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.
- Color
View - Presents a color for user editing using a spectrum, palette and component sliders.
- Flat
Color Palette - Implements a reduced flat design or flat UI color palette.
- Flat
Half Color Palette - Implements half of the [
FlatColorPalette] for improved usability. - Fluent
Color Palette - Implements the standard Windows 10 color palette.
- Material
Color Palette - Implements a reduced version of the 2014 Material Design color palette.
- Material
Half Color Palette - Implements half of the [
MaterialColorPalette] for improved usability. - Sixteen
Color Palette - Implements the standard sixteen color palette from the HTML 4.01 specification.
Enums§
- Alpha
Component Position - Defines the position of a color’s alpha component relative to all other components.
- Color
Component - Defines a specific component within a color model.
- Color
Model - Defines the model used to represent colors.
- Color
Spectrum Components - Defines the two HSV color components displayed by a
ColorSpectrum. - Color
Spectrum Shape - Defines the shape of a
ColorSpectrum. - Color
View Tab - Defines a specific tab/page (subview) within the
ColorView. - Flat
Color - Defines all colors in the
FlatColorPalette. - HsvComponent
- Defines a specific component in the HSV color model.
- Material
Color - 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
XmlnsDefinitionattributes of the upstream project).
Traits§
- Color
View Impl - The overridable members introduced by the class.
- IColor
Palette - 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-assetsthe theme documents as assets. Cheap and idempotent.