Skip to main content

Module color

Module color 

Source
Expand description

Color picking: a preset Swatch set the app configures, and ColorPicker for anything outside it.

The set is read through crate::AppExt::color_swatches and replaced with crate::AppExt::set_color_swatches; until then it is default_swatches.

Structs§

ColorPicker
Swatch
One preset color, with a value per appearance.

Enums§

ColorPickerEvent
SystemColor
One of Apple’s macOS system colors.

Functions§

default_swatches
Every SystemColor, red through brown.
parse_hex
Six or eight hex digits, with or without a leading #.
to_hex
#rrggbb, or #rrggbbaa when alpha is set.