The contrast row, its menu rows and its tests move to the craft UI framework,
as main's Color Wheel panel now uses it:
- The row is a Row with a Swatch named Background (a color well whose value is
the background's hex value) and Text for the ratio and the AA and AAA
results, each with the WCAG minimums as its tooltip.
- Show Contrast, Contrast For and Contrast Background are rows of the panel
menu's items (ui.colorWheel.contrast, contrastFor.<id>,
contrastBackground.below and contrastBackground.current), after Show
Opacity. Current Color is gray, and its row answers an error, while the
active proxy has no solid color.
- The kept background and ratio answer are fields of WheelUi instead of panel
state. The answer's key also holds whether the Live Paint Bucket paints,
which changes the proxies' paint without a document revision.
- The row's tests run in the panel's Fixture by accessible name; the drag test
runs an interaction whose previews set the fill, as the Show Document Colors
drag test does.
- The settings lists in the params text, docs/mcp.md and the tests take both
opacity and the contrast keys.
A plug-in folder load checks each file against the automation roots and,
in a command a script runs, the script's read gate. A file whose name
isn't valid text cannot be checked by name, and without automation roots
it loaded unchecked, also in a script's command. A link with such a name,
in a folder the script may read, loaded a module from anywhere.
Such a file is now refused in a script's command, as it already was under
automation roots. Outside both, it still loads.
Most of this pull request reached main with #4221 (the smooth join and the
redraw preview). What is left:
- A redraw stroke's end bends onto the path over Edit selected paths' distance.
When the stroke's points are far apart (a fast stroke), the bend used to run
on to the next point; a point is now added where the bend stops, and only one
where both ends' bends stop at the same place.
- The preview of a redraw stroke is drawn on top, as with Draw Normal, in Draw
Behind and Draw Inside too; before, it went behind the path or into its clip
group. path.freehand's `leaveSelection` becomes `preview`, which does both.
Fill Area used the full outline of art inside a clipping group, so a
click in the part a mask hides still found an area, and the new path
above the clipping group showed art the mask hid. Now each clipped
path is cut to every mask around it before it bounds areas, nested
clipping groups and clipped layers included: a filled path keeps its
overlap with the mask, and the outline of an unfilled path and open
paths keep only their pieces inside it. A mask that clips to nothing
hides what it clips. The new path still goes above the clipping group.
Follows #8001.
After a selection square is clicked, Shift-clicking another selects the
art of every row listed from the last square clicked to this one, down or
up and across sublayers and groups. Shift+Ctrl/Cmd-click adds that art to
the selection. Hidden and locked rows and art outside the isolated group
are left out, and a range does not move where the next Shift-click
starts. Before any square is clicked, Shift-click still adds one row's
art or takes it out. Ctrl/Cmd-click on a square now does the same; it
used to select the row's art alone, as a plain click does.
The panel menu's Select Art of Highlighted Rows selects the art of the
highlighted rows by the same rules.
- layer.selectAll takes {range: [id...], add?}, gathered with
Selection::target_range as the target circles' ranges are.
- layer.selectHighlighted {add?} is new. Neither is an undo step, and
the highlighted rows stay.
- Docs: docs/mcp.md, docs/target-app-parity.md.
A selected ruler guide was left out of every transform but a move: the
Rotate tool did nothing with only guides selected, and Object › Transform
› Rotate… refused with "nothing selected".
Each selected ruler guide now transforms as the line Release Guides makes
of it (across its artboard, or across the artboards' bounds for a canvas
guide), about the center of the selected objects' box and those lines
together. A guide that ends up vertical or horizontal stays a ruler guide:
a half turn keeps it and a quarter turn makes a horizontal guide vertical.
At any other angle it becomes a guide path along its line, on the guide's
layer, so it snaps, releases, locks and saves as other guide paths do.
- Object › Transform › Rotate… (Copy included), Transform Again and the
Rotate tool's drag and Alt-click work with only guides selected, in one
undo step. A turn that leaves the guides where they were records none.
- Scale, Reflect, Shear and the bounding box now transform selected guides
along with the selected objects and direct-selected anchors, where
before the guides stayed put.
- Locked and hidden guides, guides with ids given and guides with
Transform Objects off do not transform. `absolute` with only guides
selected is an error.
Part of #2418.
On a separated PostScript plate, a process white fill, stroke or
character fill or stroke marked to overprint kept its overprint flag
with Discard White Overprint on, so it was drawn as nothing and the ink
below it stayed. The plate document now turns overprinting off for
those whites, so they knock out as in composite output. White linked to
a spot swatch that has a color, at a tint above 0%, still overprints.
An overprinting colorized image in the tile of an overprinting pattern
fill is now written in only the process inks it puts down, as it is
outside a pattern, instead of as a full CMYK image that removed the
inks below it.
The params text and docs/mcp.md now say the spot exception needs a spot
swatch with a color.
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
gate test shard 1/5 (and the Sonar scan that reads its coverage) fails on crates/ui-egui/src/doc_windows/tests.rs `a_document_made_current_in_presentation_mode_comes_to_the_front_after_it`, which main fails too (CI run 45581083304); this PR touches no ui-egui code.
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>