Selecting the Quick Pen tool shows a toolbar on the canvas. Straight
Line, Continuous Arc and Sharp Corner Arc set the tool's action, Flip
Arc flips the last sharp-corner arc as C does, and More Options has
Hide Toolbar, Pin Toolbar Position and Reset Toolbar Position. The
handle at its left end drags it.
While a path is being drawn, the toolbar sits beside the path's last
point, 24 screen points off it on the side the path heads toward, or on
the other side where that side runs off the canvas. With no path being
drawn, it sits at the bottom center of the canvas. A drag's offset
applies in the kind of place it was made in (beside the drawing or
resting), and not where it would cover the path's last point. Pinned,
it stays at its place in the canvas window. It hides while a press
drags on the canvas, and its controls wrap in a canvas pane narrower
than the toolbar. Hide Toolbar hides it until the tool is selected
again; Window › Quick Pen Toolbar also shows or hides it.
- Tool::drawing_end and Session::tool_drawing_end give the point the
path goes on from and the direction it arrives in.
- New desktop commands: window.quickPenToolbar, window.quickPenToolbar.pin,
window.quickPenToolbar.reset and tool.quickPen.flipArc; ui.inspect
reports quickPenToolbar.
- Labels in every catalog.
Docs: docs/mcp.md, docs/control-protocol.md, ROADMAP, docs/ui-parity.md,
docs/target-app-parity.md. Part of #2660.
A fill whose display RGB lies outside 0 to 1 (an RGB fill given as
[1.6, 0.2, -0.4], for example) showed in the HSL and OKLCH rows with
the components of the unclipped color, so an edit started from a
color other than the one the panel shows. The rows now take their
values from the display color clipped to sRGB.
A handle drag kept the Alt and Cmd/Ctrl state it had before Space was
pressed, so pressing Alt or releasing Cmd/Ctrl during a Space translation
changed nothing until Space was released and the pointer moved. Both
modifiers are now read on every drag event. The Space translation still
keeps the accepted handle position.
The chromas sRGB holds along a ray of fixed lightness and hue can come
in several stretches, and the search looked past the first one only
near a primary color's hue. Near black the gamut slack opens stretches
at other hues: at L 0.02 and H 242 degrees the ray fits up to about
0.022 but the search stopped near 0.012, so the chroma tick sat too low
and a pick past the gamut lost more chroma than it had to.
Each linear sRGB channel is a cubic in the chroma, so the search now
takes the chromas where a channel meets a gamut bound, between each
cubic's turning points, and keeps the largest one that fits. A test
compares the result with a scan of the ray at 720 lightness and hue
pairs.
The OKLCH rows turn gray when Edit > Color Settings picks a working RGB
space other than sRGB, so a drag on one reports no release. The panel
now keeps that drag's preview as one undo step and ends the
interaction, as it does when the rows are hidden or replaced.
The ui.colorWheel tests now expect the harmony, harmonyRule, vision and
sliders keys that main and this branch report together.
A drop-down list that did not fit on either side of its field was moved
up only as far as the window's bottom edge, so it could cover the status
bar, the hint bar and a Control bar docked at the bottom. The list now
measures the room below its field to those bars, as other menus do
(#2086), and a list too tall for either side moves up until it ends at
them. Its right-to-left alignment now follows the field's own style.
The Gradient panel's Presets menu change is taken out of this branch;
the menus that set a fixed minimum width get their own fix.
Tests:
- a_dropdown_list_stops_above_the_bottom_bars
- a_dropdown_option_cut_short_shows_its_full_name_on_hover, which checks
the tooltip of an option cut short in a list narrowed to the window
A single line without advances now has its background from the nearest
to the furthest edge its glyphs' advances reach, as a line of several
does, instead of from the nearest edge on by the sum of the advances.
On more than one line without advances, a line of blanks whose underline
or strikethrough draws now has its background across its glyphs, where
the bar is drawn, instead of where the alignment puts a line that long.
Text without a background no longer measures or builds the cells.