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.