With a picked object of a dynamic symbol instance whose fill or stroke
is None or a pattern, the contrast lines measured picks unstained,
although a solid pick there is mixed towards the instance's stain when
drawn. Picks are now measured with the stain, as for a solid color;
gradients are still measured unstained.
While the Live Paint Bucket or the Shape Builder is the active tool, the
proxy shows the color the tool paints with, so color.contrast no longer
takes the selected objects' opacities and blend modes for it, and
selected objects drawn differently are no longer an error. This brings
the change from #9358 onto this branch.
A translucent or blending row drawn over a lower row that blends reads
the art behind the object only when the object does not isolate its
blending. Selected objects that differ only in isolation then draw the
color over different rows, so color.contrast reports that their colors
differ instead of measuring both with the first object's isolation. A
blending row at no opacity, or a fill row covered by an opaque solid
Normal fill row, does not count.
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.
Merge-only delta: CodeRabbit reviewed 91c7634e, the last authored head; this head adds only a merge of main, so its CodeRabbit check is a skip.
The contrast row, its menu rows and their tests keep this branch's port to
the craft UI framework. From the parent branch, the contrast answer's key also
holds whether the Live Paint Bucket paints, which changes the proxies' paint
without a document revision. The merge also brings in main at 016ead25.
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.
Export… in the Print Presets, PDF Presets, Transparency Flattener Presets
and Perspective Grid Presets dialogs suggested the document's name
(Untitled.vcprintpresets). It now suggests the selected preset's name with
the format's extension, made safe as a file name the way Export Library…
makes a library's. A built-in preset's file is named without its brackets
([Default] gives Default.vcprintpresets). The four dialogs share one
helper, preset_manager::export, and the web downloads the file under the
same name.
The panel's style browser used one id for every document, and styles
are keyed by name. A rename field left open in one document moved to
the next document's style of the same name, with the text typed so far,
and Enter renamed that document's style. The browser id now includes
the document's uid, so the open rename field and the scroll position
are kept per document.
The new test types into a style's rename field, switches documents,
types again and presses Enter. Without the change the second
document's style is renamed to "XY".
The test paints a dashed Overlay::Line that runs far past both sides of
the canvas through paint and checks that only the dashes near the canvas
are drawn, all on the line.