mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-26 11:07:54 -06:00
With Fill or Stroke set to Linear or Radial Gradient, clicking its toolbar swatch opened Fill / Stroke Options, so the gradient's colours couldn't be edited from the toolbar as in After Effects (reported on Discord, EffectCraft 0.8.0 on Windows 11). The swatch now opens the Gradient Editor (prop.editGradient) on the selected shape layer's first Gradient Fill or Gradient Stroke Colors, in contents order through nested groups; OK sets that property. With no shape layer selected, or none with that gradient, the swatch opens the options as before (the kind new shapes get: the toolbar keeps no gradient stops of its own yet). The words still open the options, a Solid Color swatch the colour picker, and Alt-click still steps through the kinds. Tests (ui_toolbar_gradient): a Linear Fill swatch opens the editor on the layer's Gradient Fill Colors and OK saves an added stop; a Radial Stroke swatch edits the Gradient Stroke, not the fill; without a selected gradient the options open; the words, Solid swatches and Alt-click are unchanged. The two gradient-swatch tests fail without this change.