mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
HUD Color Picker: Esc closes the HUD and keeps the picked colour
#6236 made Escape put back the colour the gesture started from. In the reference application Escape while the right button is held closes the HUD and keeps the colour picked so far; moving the pointer afterwards changes nothing (measured: picked 0,40,96 from 40,90,160; after Esc and a further move it stayed 0,40,96, also after the release). Escape now ends the gesture like the button release does. The pick is still one coalesced history step, so Undo takes it back. Test: Escape closes the HUD with the picked colour kept, a later move picks nothing, and releasing the button afterwards opens nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
833e69794d
commit
ac3dbfd2bc
2 files changed
+19
-18
No files matched your search
@@ -4,7 +4,7 @@ Click the color swatch in the Type options bar or Character panel to open the fu
|
||||
|
||||
## HUD Color Picker
|
||||
|
||||
With a painting tool, **Shift+Alt+right-click** on the canvas opens the HUD Color Picker: a saturation/value square with a hue strip to its right, placed so the current color sits under the pointer. While the right button stays down, moving the pointer over the HUD sets the foreground color live; releasing the button keeps it. **Esc** restores the color the gesture started from. The whole gesture is one coalesced `tools.setColors` history step. The agents' equivalent is `ui.pointer` with `"button": "right"`, `"shift": true, "alt": true` (the down opens the HUD, the up closes it).
|
||||
With a painting tool, **Shift+Alt+right-click** on the canvas opens the HUD Color Picker: a saturation/value square with a hue strip to its right, placed so the current color sits under the pointer. While the right button stays down, moving the pointer over the HUD sets the foreground color live; releasing the button keeps it. **Esc** closes the HUD and keeps the color picked so far (Undo takes it back). The whole gesture is one coalesced `tools.setColors` history step. The agents' equivalent is `ui.pointer` with `"button": "right"`, `"shift": true, "alt": true` (the down opens the HUD, the up closes it).
|
||||
|
||||
The existing canvas eyedropper continues to sample the document while the Color Picker is open, including canvas zoom and pan. This works without operating-system screen-capture permission.
|
||||
|
||||
|
||||
Reference in new issue
Block a user