9 Commits
Author SHA1 Message Date
David Mann e5b4ea6781 Merge main at e7b7cf11e into integration batch 10
i18n catalogs: main's new rows (#10328) appended after the batch's, as a union.
2026-10-31 02:05:31 +01:00
David MannandClaude Opus 5.5 ac3dbfd2bc 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 <noreply@anthropic.com>
2026-10-30 15:08:33 +01:00
David MannandClaude Opus 5.5 833e69794d HUD Color Picker: square on the left, current colour under the pointer
#6236 drew the hue strip left of the saturation/value square and opened
the HUD just below the press point. In the reference application the
square is on the left with the hue strip to its right, and the HUD opens
so the colour you start from sits under the pointer: pressing without
moving changes nothing, and a small move nudges the colour from there.

The HUD now uses that layout and placement (still pulled in to stay on
screen near an edge). The rects come from one `layout` function, shared
by drawing, hit-testing and the tests.

Tests: the square is left of the strip and the starting colour's spot is
under the pointer; a mid colour opens with the pointer inside the square
and picks nothing until it moves; near the bottom-right corner the HUD
stays on screen and the press alone picks nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 15:07:22 +01:00
David Mann a19139fbda Merge PR #9757: feat(ui): live canvas preview in the text and gradient stop Color Pickers
# Conflicts:
#	docs/ui-parity.md
2026-10-30 15:02:07 +01:00
saschaweissandClaude Opus 5.5 8ee89595f8 docs: order the revision entry and say 'picked colour' for the picker preview
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014QvfaMyAX4i4PbKBMnvFj6
2026-10-29 00:53:45 +01:00
saschaweissandClaude Opus 5.5 b49de17116 Merge upstream main into type-color-live-preview
Upstream split canvas.rs and lib.rs into modules and moved the dialogs
under dialogs/. The preview module moves with them
(dialogs/color_picker_preview.rs); its canvas hooks now sit in
canvas/display.rs and canvas/textures.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014QvfaMyAX4i4PbKBMnvFj6
2026-10-27 17:18:34 +01:00
saschaweissandClaude Opus 5.5 5bea3fd3f5 feat(ui): live canvas preview in the text and gradient stop Color Pickers
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
2026-10-26 22:14:54 +01:00
highperfocused 274d133353 Shift+Alt+right-click opens Photoshop's HUD Color Picker (#6098)
With a painting tool, Shift+Alt+right-press on the canvas opens a floating
hue strip and saturation/value square under the pointer. While the right
button stays down, moving over the HUD sets the foreground colour live
(coalesced tools.setColors, one history step); release keeps it, Escape
restores the starting colour. Alt+right-drag brush resize now requires
Shift not be held, so the two gestures stay distinct. Agents drive it with
ui.pointer button=right shift+alt (down opens, up closes).
2026-10-15 19:13:16 +02:00
abc2cbandClaude Opus 5.5 0256eaa4e0 Type Color Picker opens the full Color Picker; screen eyedropper with a pixel loupe (#1232)
The Type options bar and Character panel swatches open the full Color Picker (Text Color),
applying to the selected characters or the whole layer via type.setStyle; Cancel is inert. A
shared "Pick screen color" action in the full dialog and compact popups samples the desktop:
X11/Windows/macOS snapshots with an 11x11 magnifying loupe (4x-24x), the XDG PickColor portal on
Wayland, the EyeDropper API on the web. Captures stay in memory, are bounded at 64 MP, and are
ICC-converted to sRGB where the display publishes a profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 00:30:50 -04:00