Expand description
Default ColorPickerStyle impl + the picker’s design tokens.
Design tokens for ColorPicker live as pub consts on this module.
The four functional renderers (HsvCanvas, HueStrip, AlphaStrip,
ColorSwatch) read these directly when they need dimensions for
their colour-space rendering.
RecipeColorPickerStyle::make_body ports the IntUI layout exactly:
one of three column / row arrangements per ColorPickerLayout,
wrapped in a Panel surface (1 dp border + corner radius +
PADDING interior).
Structs§
- Color
Picker Recipe - Configurable dimension recipe for
RecipeColorPickerStyle. - Recipe
Color Picker Style - Default
ColorPickerStyleshipped with Teksilo.
Constants§
- CANVAS_
CORNER_ RADIUS - CANVAS_
HEIGHT - CANVAS_
WIDTH - CHECKER_
CELL - CHECKER_
COLOR_ A - CHECKER_
COLOR_ B - GAP
- HEX_
FIELD_ WIDTH - INDICATOR_
INNER_ COLOR - INDICATOR_
INNER_ STROKE_ WIDTH - INDICATOR_
OUTER_ COLOR - INDICATOR_
OUTER_ STROKE_ WIDTH - INDICATOR_
RADIUS - PADDING
- PREVIEW_
CORNER_ RADIUS - PREVIEW_
HEIGHT - PREVIEW_
WIDTH - SPINNER_
FIELD_ WIDTH - STRIP_
CORNER_ RADIUS - STRIP_
LENGTH - STRIP_
THICKNESS - STRIP_
THUMB_ CORNER_ RADIUS - STRIP_
THUMB_ HEIGHT - STRIP_
THUMB_ WIDTH - SWATCH_
CORNER_ RADIUS - SWATCH_
SELECTED_ STROKE_ WIDTH - SWATCH_
SIZE - SWATCH_
SPACING