mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-20 09:23:10 +01:00
Part of #978. The Color Wheel panel menu gains HSL Sliders, shown in place of OKLCH Sliders: H (0 to 360°), S and L (0 to 100 %) rows under the wheel or the box that edit the hue, saturation and lightness of the color's display sRGB, as CSS Color 4 defines HSL (https://www.w3.org/TR/css-color-4/#the-hsl-notation). A pick goes into the working RGB space as the wheel's picks do, the rows keep the hue of a gray, and they take the arrow keys and report their names, values and ranges to screen readers as the OKLCH rows do. - vectorcraft-color: rgb_to_hsl and hsl_to_rgb follow the conversions in CSS Color 4 sections 7.1 and 7.2, with Color::to_hsl and Color::from_hsl beside to_hsb and from_hsb. - ui.colorWheel takes sliders: "hsl"; an unknown value now answers "`sliders` must be none, oklch or hsl". - Docs: docs/mcp.md, docs/control-protocol.md and the Color Wheel evidence in docs/target-app-parity.md.