1# llimphi-widget-color-picker23Agnostic RGBA colour picker.
45It composes three pieces, top to bottom:
671. a **swatch** of the current colour,
82. a **palette of preset chips** (a click sets the RGB while keeping the current
9 alpha), wrapped if it does not fit in one row,
103. four **RGBA sliders** for fine adjustment.
1112It is agnostic: it knows nothing about config or `FieldValue`. It takes the
13colour as `[u8; 4]` and emits the new one through `on_change([u8; 4]) -> Msg`.
14Any llimphi app uses it by passing its own `Msg`.
1516```ignore17color_picker_view(
18 self.border,
19 DEFAULT_SWATCHES,
20 &ColorPickerPalette::from_theme(&theme),
21 |rgba| Msg::SetBorderColor(rgba),
22)
23```2425---
2627Part of **llimphi** — see [llimphi](../../README.md).
README.md
llimphi-widget-color-picker
Agnostic RGBA colour picker.
It composes three pieces, top to bottom:
a swatch of the current colour,
a palette of preset chips (a click sets the RGB while keeping the current
alpha), wrapped if it does not fit in one row,
four RGBA sliders for fine adjustment.
It is agnostic: it knows nothing about config or FieldValue. It takes the
colour as [u8; 4] and emits the new one through on_change([u8; 4]) -> Msg.
Any llimphi app uses it by passing its own Msg.