just_colours 0.1.0
just_colours: ^0.1.0 copied to clipboard
Color toolkit package with palettes, gradients, color theory helpers, and picker UI.
0.1.0 #
Initial release: The picker, redesigned.
- One picker, two windows.
ColourPickerPanelis the picker itself;ColourPopover.showopens it beside a field (a click outside applies, Escape cancels) andJustColourDialog.showin the middle of the screen. Both takeonChangedto show a colour live as it is dragged, abuilderto put a theme round it, and draw only from the ambientTheme. - Solid or Gradient is what you get. The switch at the top replaces the tabs and the "Use Gradient in result" toggle, which let a gradient be edited and a solid colour come back.
- Colours edited in place: a saturation/brightness square, hue and
opacity strips, and Hex, RGB, HSL or HSV numbers; a pasted
#RGB,#RRGGBBor#AARRGGBBis read. No second dialog. - Gradients with any number of colours. A stop bar adds, moves and removes them (click, drag, drag off or Delete); the preview has handles for a linear gradient's direction, a radial one's centre and size, and a sweep's centre, start and end. Reverse, space evenly, and what lies past the ends (extend, repeat, mirror, clear).
- Tint.
ColourSelection.tintis multiplied over a gradient; the picker shows it when asked (showTint), and its preview is what will be drawn. - Swatches: recent colours, palettes, labelled harmonies (each colour once) and gradients, with "To gradient" from a palette or harmony.
ColourLibrarykeeps recent colours, palettes and gradients and says when each changes, so they can be kept in different places.ColourStorageRepository.loadLibrary()keeps one on the device.- Eyedropper given a
ColourSamplerthat reads the screen. - Fixed: swapping a gradient's ends dropped every colour after the second;
the stop count shown was always two; stops left unmatched by colours
broke the gradient (
copyWithnow drops them); a sweep's angles were not kept; a negative angle read as 0; harmony suggestions repeated the base colour; the preview text could not be read on light colours. - Added:
GradientStop,GradientConfig.stopList/withStopList/reversed/evenlySpaced/colorAt,startAngle/endAngle, equality on the models,NamedGradient,ColourTheory.harmoniesandshades,ColourCodec.tryParseHex.