mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-30 04:37:29 -06:00
The reference app selects the complement of the current fill or stroke on a Cmd/Ctrl-click of the Color panel's color bar and the inverse on a Cmd/Ctrl+Shift-click, and with Alt (Option) also held it changes the nonactive one. In VectorCraft these clicks picked the spectrum's color, and a Cmd/Ctrl+Shift-click cycled the color modes. A Cmd/Ctrl-click on the spectrum now applies Complement and a Cmd/Ctrl+Shift-click applies Invert to the active Fill or Stroke, as the panel menu's items do: a selected gradient stop or freeform point is recolored in place, and a solid color goes through paint.complement or paint.invert. With Alt also held, the click runs the command on the inactive proxy, which stays behind. A Cmd/Ctrl drag still picks colors, and plain, Alt and Shift clicks keep their behavior. The panel menu's Invert and Complement use the same code. Docs: docs/target-app-parity.md.