The test of a second click on the highlighted variable clicks the row through
tests::panel_harness::Panel instead of the file's hand-written frame loop.
- The dialog's body only reports its events, typed texts and whether a
field has the focus; the dialog applies the last run's report after the
container, and Enter outside a field comes from take_submit after it.
- The controls scroll in a craft Stack, and a panel is a GroupBox.
- remove() on a container walks the removed control's subtree and checks
the heap before its first change, so a run that ends in it leaves the
container, the dialog's counts and the control as they were.
- The dialog's accessibility tests draw through part_frame.
A plug-in command with parameters, invoked with a number, a string, a list
or a non-list `ids`, opened its dialog at the defaults and dropped what it
was given. Such params now go to the command as they were given.
Type or an image an importer at API level 4 returns that reaches more than 4,000,000 pt from the origin is refused, as the document would drop it on the next open. plugin.list's description and docs/mcp.md name outputKinds and API level 4.
A reset in Preferences can leave a row showing the value the window
opened with after a command changed the setting. OK wrote that row, but
Apply stayed disabled because it compared the draft only with the values
at open. Apply is now enabled while any row has been set in the window.
The Ellipse tool previewed the circle through two Shift-clicked points
and the pointer as a dashed outline at any size. The canvas dashes an
outline along its whole length, so points nearly on one line (a radius
of about 1,250,000 pt) gave about a million dashes every frame.
The preview now uses the Circle tool's limit: a circle more than 50,000
screen points around is drawn solid. Both tools call one helper,
`circle::preview_dashed`.
The click's Alt comes from the framework's pointer frame (pick_mods), which adds the modifiers the app latches from the Modifier Keys panel, instead of raw egui input.
Edit › Keyboard Shortcuts grouped a command that no menu holds by the
first part of its id, so UI commands showed under "Ui", and others under
"Addon", "App", "Css", "ImageTrace", "Plugin" and similar names that no
catalog translates.
Such a command now takes the menu path of the menu bar item that runs
it (Recolor Artwork… goes under Edit › Edit Colors). Otherwise it takes
the path its family's menu bar items share (Remove Corners goes under
Object › Plug-ins › Path Precision Tools), or the menu or panel that
holds it from a table (Rename under Window › Layers, Justification
under Window › Paragraph). Only a command none of these cover keeps the
group of its id.
When a command the menu bar runs now has the group and label of an
engine command no menu bar item runs, both are listed and the engine
command shows its key: Object › Expand… is the Expand dialog, and
object.expand shows as Object › Expand… (object.expand).
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.
- `palette::button_texts` reads the kept palette build as it is and no
longer recomputes every tool's home on each footer pass; it builds
only when no build exists for the current catalog.
- `docs/control-protocol.md` states the errors of `toolbar.addCommand`
apart from `toolbar.removeCommand`, which answers with the unchanged
list for a command the toolbar has no button for.
- The edit toolbar tests run their lookups in a frame from
`crate::testing::part_frame`.
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.
Main added a `values` argument to `open_filter`, which made it take eight
arguments and fail clippy's `too_many_arguments`. A command's id, its
context-menu objects and its document now go in one `CommandRun`.
access_names settles the dialog and reads the accessibility update from
crate::dialogs::tests::frame, as the Art Brush Direction test does,
instead of running its own frame.
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.
OK sent every row of the draft through prefs.set and wrote Smart Guides,
Snap to Grid and Enable Contextual Task Bar back from the values copied
when the dialog opened. A setting changed by a command, a panel menu or a
script while Preferences was open went back to its old value, and a
workspace switched to while it was open took the Contextual Task Bar of
the workspace the dialog opened in.
- The window keeps each row as it last read it (at open, after an import
or a prefs.reset refreshes it, and after OK or Apply) and the rows set
in it since then. OK and Apply write only the rows set in the window or
whose value differs from the one read, so a reset in the window is
still written. A row changed both ways takes the window's value.
- Enable Contextual Task Bar left alone in the dialog is not written, so
each workspace keeps its own bar.
- OK with nothing changed runs no prefs.set, adds no undo step and does
not ask the host to save the settings; original_editor::commit reports
whether the Edit Original choice changed.
Docs: docs/mcp.md (Preferences) and a line in docs/target-app-parity.md.
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.
A click that asks for the radius while the dialog is still open (as a control request can send) closes the open dialog and rolls its preview back, and the new dialog takes over its held answer. Before, the new dialog lost its state to the old dialog's cancel and its OK could not draw.
Each invalid assignment is now caught inside the script, and the mode is read
right after it, so a setter that changed the mode before throwing fails the
test instead of being hidden by the run's rollback.