Skip to main content

Module recipe_color_picker_style

Module recipe_color_picker_style 

Source
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§

ColorPickerRecipe
Configurable dimension recipe for RecipeColorPickerStyle.
RecipeColorPickerStyle
Default ColorPickerStyle shipped 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