Files
craft-libs/crates/color
aiongg c09e0a6798 Entries a step skips: Entry::stepped, one step rule for Select and ComboBox
A step over a closed control stops on the enabled, stepped entries only. A value on
none of them (mixed, or an entry only the open list offers) has no place: it reports
no number, so both steps are offered, and a step forward lands on the first stop and
a step back on the last. Select and ComboBox step with the shared step_stops and
step_stop.

LutPicker marks Load 3D LUT…, the folder files and the loaded LUT as not stepped, in
place of its filter on step events. The loaded LUT then offers both steps, which the
craft-color activation suite asks for.
2026-11-12 14:32:38 +00:00
..

craft-color

Colour for Craft apps. With the ui feature, craft_color::ui has the colour picker (ColorPicker, ColorPopover, ColorArea, ColorStrip, ColorWheel, ColorDisc, ColorRamp), the wells (SwatchPair, Well), SwatchPalette tables and the HexField. It also has the colour features built on them: the Color Picker dialog (ColorPickerDialog), dialog droppers (DropperButton, DropperState), the Eyedropper's options and ring, Color Sampler points, the screen colour picker (ScreenColorPicker), ColorChoice, PaintChip and PaintList (with their PaintKindLabels and PaintListLabels), the Color and Swatches panels (ColorPanel, SwatchesPanel), the profile mismatch prompt, the harmony wheel and Color Guide panel, and the LutPicker.

Stories: patterns/color/{picker-dialog, panel, swatches, eyedropper-bar, samplers, paint-chip, choice, harmony, lut-picker, profile-mismatch} show each of those features in its states. The two dialogs run on a DialogHost (a "Show dialog" button in an Overview tile). The screen eyedropper is off in the stories, so none starts a screen capture.

Without ui: CmykModel (CMYK through a craft-cms profile), swatch files (palette: .aco, .act, .ase, .gpl, .css), the display transform and its caches (display), and colour harmonies (harmony).

The colour model and conversions are in craft-theme; profiles and transforms in craft-cms.