Files
craft-libs/crates/color
aiongg 73cf8de8f6 Pages: pages that take turns in one place at the size of the largest
A hidden page is measured only: a measuring run inside an invisible sizing
child, so it senses, registers and paints nothing. It reuses the size its
last measuring run found while nothing it read changed, under the settled
rules a measure reads (no input other than pointer motion, no edit of a value
it read, nothing moving, no app repaint): the measuring run opens the same
run record replay::open/close keeps for settling regions, and lazy keeps its
facts with the size. A reused page notes its reads again, so an edit of one
later in the pass reruns the pass.

PaintChip shows its paint kinds through Pages: its popover keeps the size of
its largest page, so a tab switch moves and resizes nothing.
2026-11-17 03:58:47 +00:00
..
2026-11-14 17:56:00 +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 Info panel (InfoPanel), the HUD Color Picker over a canvas (ColorHud), the profile mismatch prompt, the harmony wheel and Color Guide panel, the LutPicker, and ui::gradient (GradientEditor, GradientStops, the stop rules, GradientRamp).

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.