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.
A fill edit of a selected Live Paint group with edges and no faces edits
no object, yet paint.editGradient accepted an aspect there and returned
no ids, and the Aspect Ratio field stayed enabled.
- paint.editGradient refuses an aspect when the Live Paint filter leaves
no object. Graph design art alone still changes nothing without an
error, as for the other params.
- Session::gradient_edit_has_objects reads the same filtered targets, so
the field is dimmed in that case.
- Params text and docs/mcp.md name the case.
On more than one line without advances, each line's background now runs
across its glyphs' advances, trailing spaces included, as a single line's
does; layout leaves the trailing spaces out of the width it aligns. A
first line that holds only NULs fills its cells across their advances
instead of drawing nothing.
The handle drag that keeps Space translation sent path.setHandle without
`symmetric`, so Cmd/Ctrl no longer mirrored the opposite handle on an
ordinary path. The drag now records the mirror with the handle it accepts
and sends it on every preview, so the opposite handle stays mirrored while
Space moves the anchor. Alt still takes priority.
This takes three behavior changes out of the branch, so that it holds the
opaque background and the character cell it fills:
- A single line without advances is aligned as before, without its
trailing spaces. Its cells run across its glyphs' advances from where
its type starts; blanks alone, which draw no type, are filled where the
alignment puts them.
- NULs after a line break add their advance to the character before them,
as before.
- Blanks that are underlined or struck through draw nothing, as before.
A string of NULs alone in an underlined font now fills its cells and
adds no empty type object.
docs/mcp.md no longer describes the three, and docs/target-app-parity.md
lists the background and the cell.
The first commit's body names FontFace::win_ascent_descent as
Face::win_ascent_descent. A device context starts with a background color
that is typically white; the first commit states white as the playback
default.
A click that went down on New Symbol, Delete Symbol or a panel menu
item and went up in a later frame within egui's click distance reads
the modifiers of that release, also past the interact radius. A click
within one frame is matched by where the button went down, as egui
does.