mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
While the Type tool's Color Picker (Text Color) or a gradient fill layer's Color Picker (Stop Color) is open, the canvas shows the target (the selected characters, every selected type layer, or the stop) in the colour under the cursor, as Photoshop does. The preview runs the command OK will run (type.setStyle / gradient.fill.stop) on a copy of the document, so the session's document, revision and history are untouched: Cancel only stops showing the copy, OK commits the previewed edit in one history step. Canvas invalidation is limited to the target layers' bounds, with a full refresh while they are empty. Follows the existing preview pattern of the Solid Color, shape fill and text style colour pickers. Refs #5530. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014QvfaMyAX4i4PbKBMnvFj6