While the Live Paint Bucket (or the Shape Builder, for the fill) is the
active tool, the Fill and Stroke proxies show the color the tool paints
with. color.contrast still took the opacity and blend modes from the
selected objects, so it rated the bucket's color at an opacity it is not
drawn with, and refused to answer when the selected objects were drawn
differently. It now draws the tool's color in Normal mode, at `opacity`
or fully opaque, as for a given `color`.
Docs: docs/mcp.md and the command's params text.
a_canvas_frame_without_a_document_releases_the_text_nodes creates its
context once and runs each frame through crate::testing::part_frame
with crate::canvas::show, in place of its own frame loop.
drawn_preview now runs each frame with testing::part_frame_uploads instead
of its own ctx.run_ui loop. part_frame_uploads is part_frame with the
frame's texture uploads kept in the returned FullOutput; part_frame calls
it and clears them as before, so its callers see no change.
Edit › Keyboard Shortcuts left out UI commands with no default key, no
menu bar item and a params doc other than {} or {path…}, so New Swatch…,
New Color Group…, Color Group Options…, New Brush…, Brush Options…,
the Layers panel's Options for Selection…, Corners…, Placement Options…,
Relink…, Perspective Plane Options…, Bullets and Numbering…, Missing
Fonts Dialog and Find Fonts in Folder… could not get a key, although
each runs with no params. They are now listed
through a KEY_ONLY_UI list that replaces the `id ==` checks for Rename
and Color Picker…. A key opens the dialog for the selection or the
current item, or the status bar says why it cannot.
Color Group Options… with no group selected now says "select a color
group in the Swatches panel, or pass group" instead of "missing `group`".
Docs: docs/mcp.md, docs/ui-parity.md.
The rows this branch added to the 25 catalogs are removed; translations
go through storytold/craft-i18n. The Retype run tests draw the progress
window and settle the context with testing::ui_context and part_frame.
The installed-font search keeps a face that holds glyphs without
completing a shape only while a split shape is not found yet, and drops
the kept faces once every split shape is found. A shape matched whole is
compared without the kept faces.
After an Apply that entered Touch, the Enable Contextual Task Bar row
kept the value given to the workspace left, and the next Apply wrote it
to Touch. The row now shows the task bar in use after each Apply. When
OK leaves Touch, the workspace returned to takes the row only when it
was edited; otherwise it keeps the value it left with.
The pop-up's Radius edits are now collected inside the Stack and applied
after it, as the kind and rounding radios already are.
relativeRadii no longer turns a plain path into a Live Corners path here;
that change goes to its own pull request. relativeRadii on a plain path,
an ellipse or a line leaves it as it is and adds no undo step.
`tests::panel_harness::floated` shows a panel docked or floating in the
whole app window and returns its body and named nodes, with `Shown::past`,
`past_named` and `middles`. The panel-row tests and the Gradient panel
tests both use it instead of their own copies.
Split Into Grid's fields edit a copy of the dialog values inside the grid
and keep it only when the pass takes effect, as form::stacked does, so a
measuring pass no longer changes the values the real pass reads.
tests::script_dialogs::frame returns the last pass's output, and the
Picked files group test reads the accessibility tree from it instead of
running its own frame.
#9100 replaced Session::bucket_paints with tool_paints(stroke), and #7718's
contrast cache key still called bucket_paints, so main stopped compiling.
The key now records whether the active tool paints with the proxy in front,
the paint color.contrast measures.
Window takes an optional size (Window::sized), and the test that checks the
format rows at the default and least window sizes runs its frames through it
instead of its own copy of Window::run's frame loop.
The line said layers were not there yet, while a page item's parent is
already a Layer with name, typename and toString. It now names
Document.layers and Document.activeLayer as the members still missing.
With ECMAScript 2015, Function.prototype.bind gave every bound function
Function.prototype as its prototype, so a bound generator function's
constructor was Function instead of GeneratorFunction. The bound function
now takes the target's prototype, read before length and name (ECMA-262
2020 section 9.4.1.3). Without the option it keeps Function.prototype,
as ES5 section 15.3.4.5 specifies.
The Paintbrush with a brush whose Size or Width is on Stylus Wheel with
a range the wheel can change, or the Eraser with a value on Stylus Wheel
and a variation above 0, uses the wheel. The app asks the active tool
(Tool::reads_wheel) once a frame and tells the host when the answer
changes (Services::stylus_wheel). Until a tool uses the wheel, a pen
message loads no Wintab32.dll, installs no hook, subclasses no window
and opens no context; when it stops, the context closes.
The tool overview in docs/mcp.md said the pointer snaps within 5 screen
points. It now names the tool's Snap Tolerance (5 by default) and the
limit that Snap with Smart Guides Off sets while Smart Guides are off,
as the options section below describes.