mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 20:07:05 -06:00
- parse_fill took a present non-array "stops" / "opacityStops" / "midpoints"
as absent: {"gradient":{"stops":"red"}} silently became black to white. It is
an error now (CodeRabbit's finding); the hostile-values test also checks that a
rejected shape.create leaves the document and history alone.
- The swatches sent every gradient stop as sRGB RGBA, so in a CMYK or Lab
document ticking Reverse or changing the angle turned every stop into an RGB
colour (written back to PSD as RGBC). Stops now go out as stored Colors, which
shape.create / shape.edit accept, finite with alpha in 0..1.
- Options bar, strokeless shape selected, stroke gradient chosen: the width
field and the stroke type added a solid background-colour stroke. They take
the stroke gradient now, as the Fill checkbox and the next shape do.
Co-authored-by: Denis <179751626+deniskhud@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>