The pen that took the Wintab readings now reads the latest packet of its
own cursor whenever that cursor is still near the context, instead of
only when it is the one cursor read. Another tablet's airbrush moving
while the pen is held still no longer drops the pen's wheel.
The status bar's zoom field and the Navigator edit the canvas view, whose
zoom is the view's zoom divided by UI Scaling. Both sent that canvas zoom
to view.setZoom, which stores the zoom it is given, so at 150% UI Scaling
typing 200% zoomed the view to 133.33%.
View::zoom_of_canvas turns a canvas view's zoom back into the view's zoom,
the inverse of View::canvas, and View::set_canvas uses it. The status bar
and the Navigator convert the edited zoom with it before they run
view.setZoom.
The native menu bar handed AppKit items without shortcuts: only the Window
rows carried one, and Settings › General… carried the default ⌘K. Save,
Open, Undo, Group and the other items showed no keys and had no key
equivalents.
- The native menu now gives each item the shortcut the menus show for it,
else its command's chord in the window's keymap, the user's own set
included, as the in-window bar's rows look it up. A rebound command shows
its new key.
- Settings › General… shows Preferences' current shortcut instead of the
default one.
- The Window rows' and Settings' shortcuts are read when the native menu is
laid out, so they no longer stay empty after the first frame.
Every built-in workspace took its layout from default_workspace, which
lays the Tools panel out in one column, so Painting lost the two-column
Tools it had before the craft framework port, and Window > Toolbars >
Double Column read unchecked after switching to it. A built-in now
names its Tools column count, and Painting asks for two. No other
built-in set a toolbar option of its own before the port.
- Each pen's end is kept by its pointer id, so only the same pen turning over
starts the readings afresh; another pen's message with the other end does not.
- A cursor whose WTInfoW query failed is asked again 2 s of the message clock
later, and only a cursor the driver describes without a wheel is cached as
having none.
- Whether the app is active is asked again right before WTOpenW, after the
close and WTInfoW calls before it.
- docs/target-app-parity.md: a pen first reads the wheel from a packet within
200 ms of its message, then holds the readings until they start afresh.
A Color Picker opened from a dialog's color row (effect dialogs,
Artboard Options, Layer Options, Recolor Artwork), from the Dimension
options and from Preferences had no Color Swatches button, because only
the Fill/Stroke proxy's picker was given the swatch view. Recolor
Artwork's Pick from Swatches asked for the swatches, but the picker
drew its color models.
- Every picker now has the swatch view: the document's swatches and the
color libraries.
- A picker over Recolor Artwork shows the library that Limit to Library
limits the rows to.
The Paragraph group was one ranked member at its call site, and a narrowing row drops a ranked
member whole, so the link left with the Align left, Align center and Align right buttons.
`panels/paragraph.rs::control_bar` now shows the link and the buttons as two members of
`rank::TYPE`, and within one rank the bar drops the last member first.
A key request for the canvas menu reaches the app at the view's centre.
The menu treated it as a right-click there: it selected the object
under the centre, listed the locked objects and the misspelled word
found there, and with the Artboard tool selected the artboard there.
The canvas now passes the request's source on. A key request keeps the
selection, opens the menu at the part of the selection in view (the
selected artboards with the Artboard tool), or at the view's centre when
none of it is in view, and looks up nothing under a point. A right-click
still selects what is under the pointer.
The release modifiers are read from the pointer frame's pick_mods, the
modifiers of the pass's button release with the latched ones added, in
place of raw egui pointer events. The release-modifier tests drive the
whole app through testing::app_frame.
The opacity row re-keyed only the remembered HSB after its edit, so a
hue given to a gray in the HSL or OKLCH rows jumped back to the gray's
own hue when Opacity changed. One helper now moves all three records
to the edited paint.
The list is a Stack with a vertical scroll, and each line is a Lazy child,
so only the lines in view run. The row whose Revoke was clicked is returned
from the list's body and revoked after the list is shown.
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 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.
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.