Skip to main content

Module color_swatch

Module color_swatch 

Expand description

Colour swatches: one named swatch type, one painter, one picker.

Structs§

ColorSwatch
One colour a person can pick.
ColorSwatchFace
An immediate-mode swatch: paint, hit-test, tooltip and accessibility from one declaration.
ColorSwatchPicker
A grid of ColorSwatches as a widget.
ColorSwatchPickerProps
A grid of swatches, one chosen (a palette of accents): the chosen cell carries the ring. Each swatch is a colour by its hex text, shown in the theme’s own samples.

Type Aliases§

SwatchPainter
Paints swatch index into its rect in place of its flat colour: (scene, transform, rect, index, theme, text).