These lists read the value their select proposed this pass, so an entry
highlighted with the arrow keys was applied before it was chosen, and
Escape left it applied. Each one now reads the committed entry:
- Bullets and Numbering's Alignment
- Character Style Options' Fill and Stroke
- the Composite Fonts parts table's Style
- the 3D (Classic) Map Art page's Symbol
- Find Font's Replace With Font From and Find In
Each list has a test that highlights an entry with the arrow keys,
checks that nothing changed, presses Escape and checks again, and then
chooses an entry with Enter.
The tool rail built every slot again in every frame: a command and a
caption for each tool, and a walk of the tool catalog for each slot's
id. It now keeps the tool groups its slots came from and builds the
slots again only when those groups or the UI language change. Slot ids
come from a table built once.
The Properties panel listed its Quick Actions in every frame, which
checks several commands and walks the selection. The list is now kept
with a key made of the menus' state, the document and its revision, the
tool and isolation mode, and is listed again only when the key changes.
Frame benchmark (1920x1080 at 2x, 400 objects, median UI-thread time of
300 frames): idle 5.64 ms to 5.51 ms, 400 objects selected 17.75 ms to
16.46 ms; allocations per frame 13,439 to 13,121 idle and 70,090 to
68,169 selected. The tests count the slots built and the Quick Actions
lists made per frame.
stroke.set names its appearance item through item_target_at as the paint commands do. The test
fails without the change to item_target_at: stroke.set with `target: "content"` and an `id`
answered {objects: 1}.
The canvas measured the art and artboards of the whole document in every
pass to size its view target, so a frame cost grew with the object count.
view_target now reads content_bounds_of, which keeps one measure per open
document and measures again only when that document's revision moves.
The status bar's Zoom field, Rotation menu and artboard navigator now show
in a MemoView keyed on the view, the artboard, the document revision and
the language, so idle frames replay them instead of laying them out.
#8099 added five @msg rows to id.tsv (the opacity messages for
paint.setFill and paint.setStroke) that the catalog already had at lines
487 to 491, so main's gate failed on
i18n::tests::bundled_catalogs_are_consistent with "defined twice (same
context and source text)". The second copy is removed; the first copy
is kept.
item_target now reads `target` with `ids` or `id` too, so the comment above the early read in
apply_paint_opacity names only the case it still covers: selected characters take the paint before
item_target runs.
tests::script_window::controls_are_drawn_at_the_size_the_script_gave_them took the first text
input in the accessibility update. The field exposes two, the field itself, named Text and
200 points wide, and the editor inside its 6-point padding, 188 points wide, and egui lists the
update's nodes in hash-map order, which other widgets in the frame change. After #9255 merged, the
editor came first and the test failed although the field is drawn at its preferred width. The test
now looks the field up by its name.
ui.colorWheel answers contrast, contrastFor and contrastBackground since #7718, and the test
#8099 added still expected the keys from before it. The test now sets contrast and contrastFor,
checks that a null keeps each of them, and expects contrastBackground, whose null unpins the
background.
#8099 added five @msg rows to id.tsv that #7642 had already added, so
i18n::tests::bundled_catalogs_are_consistent failed on the repeated definitions. The later copies
are removed; the rows #7642 added stay.
item_target_at read `target` only when no `ids` or `id` was given, so paint.setFill and
paint.setStroke with an `id` and a target such as "content" painted the object instead of
refusing it, and tests::paintopacity::a_bad_target_is_refused_with_an_id_or_selected_characters
(added in #8099) failed. item_target_at now reads `target` first, for every command that names
its item through it, and the selected-part path no longer needs its own early read.
#9970 fixed the 3D dialogs' OK on main by ending the running preview before the values run again.
This takes out this branch's earlier fix (LivePreview::rerun_next) so the two do not overlap.
#9945 placed every frame drawn by reproject_frame on whole device pixels.
That also moved the cached frame shown while the canvas is panned,
zoomed, resized or moved to another display by up to half a device pixel,
so it no longer sat where the document maps it, and main's gate failed on
canvas::tests::cached_frames_keep_their_scale_during_resize_rotation_and_dpi_changes.
A frame now snaps only when it was rendered for the current center, zoom,
canvas size and pixel density. A frame reprojected while the view changes
keeps its exact document mapping until the replacement arrives, and steady
frames stay sharp as #9945 intended.
#9835 made OK start a fresh preview to validate the values afresh, but
it replaced the running LivePreview without ending it. A fresh preview
does not start while another interaction is open, so with Preview on OK
was refused and the old preview's interaction stayed open. Reopening the
effect then could not preview: main's gate failed on
dialogs::revolve::tests::lighting_presets_cancel_restores_an_existing_custom_light_rig.
OK now ends the running preview with cancel_preview first, then runs the
fresh preview and commits it as before.
A target circle dropped on the Layers panel's Delete Selection button
reduces its row's item to a basic appearance again. The button accepted
only dragged rows, so the appearance branch of the footer's drop handling
never ran and the drop did nothing. Delete Selection now also accepts an
appearance dragged from the same document and contents.
New panel tests cover the target circle's drop filter (another row's
appearance moves or, with Alt, copies; its own row's appearance, one from
another document, a paint and dragged art are refused) and the trash
footer's (an appearance from the same document is reduced to basic and the
row stays; one from another document, a paint and dragged art are refused,
and Create New Layer refuses an appearance).
The opacity path of paint.setFill and paint.setStroke (apply_paint_opacity)
never checked `target` or `aligned`. With `id` or `ids` naming an object,
item_target reads no `target`, so a call such as {"opacity": 40,
"target": "content", "id": ...} painted the object instead of failing.
The test added in 6898eed99 covers that case, and the opacity path from
4f065ccbb (Show Opacity in the Color Wheel panel) merged beside it without
the check, so main's gate failed on
tests::paintopacity::a_bad_target_is_refused_with_an_id_or_selected_characters.
The opacity path now runs the same two checks as the color path
(tool_color_params): appearance::aligned and appearance::targets_contents.
Valid values are read where they were before.
The swatch browser takes all the room under the proxy, and the footer
was drawn after it, so the footer buttons sat below the panel's bottom
edge and were clipped away. The browser and the footer now share a
Stack whose footer region takes its room first, as in Appearance, and
the browser fills what is left above it.
The new panel_docking test floats Swatches alone and above Transparency,
docks it above Transparency at its default height and sized 200 and
150 pt, scrolls the list to its end, and checks that the footer buttons
lie inside the panel and that no list shape shows between them and the
panel's bottom edge (#8307).
OK in the 3D dialog replaced its live preview with a new one before
running the values again. The new preview no longer owned the
interaction the dialog's preview had started, so it ran nothing while
that interaction was open, and the commit then refused with "Finish the
active edit first." With Preview on, OK left the dialog open and saved
nothing, and a refused draft reported that message instead of the
engine's reason.
OK now forgets only the values the preview last ran
(LivePreview::rerun_next) and keeps its interaction, so the values run
again inside it and the commit keeps that interaction as one undo step.
This fixes four vectorcraft-ui-egui tests that fail on main under both
cargo test and cargo nextest:
- dialogs::revolve::tests::lighting_presets_cancel_restores_an_existing_custom_light_rig
- dialogs::three_d::unchanged_tests::refused_three_d_preview_confirmation_retries_the_same_draft
- dialogs::three_d::unchanged_tests::three_d_dialog_changed_options_commit_once_or_cancel
- dialogs::track_cube::precision_tests::screen_plane_keys_preserve_the_untouched_rotation_axes_through_preview_and_ok
- Transform effect: the Scale, Move and Rotate rows span the dialog
instead of sitting behind a "Transform" label, and Reflect X,
Reflect Y and Random show their names (the boxes were unlabeled).
- Transform Each: the reference point picker shows its name.
- Zig Zag, Roughen and Tweak: Relative and Absolute stand on one
line, and so do Smooth and Corner.
- Corners: Relative and Absolute stand on one line.
- Drop Shadow: the color well stands under Color and the Darkness
field under Darkness.
- Print: the Range field stands under the Range choice instead of
after Ignore Artboards.
Each uses the form's own radio layouts (options_in_row, under_option)
and plain check box rows. Tests in tests/dialog_layout.rs check where
the dialogs paint these rows.
The Global Edit Options popover (Properties panel and Control bar) laid its two captions, five options and the Results line out as one flat column, so the On Artboards caption sat closer to the Size option than to its own options. Match and On Artboards are now field groups in a stack with the framework's stack gap between the groups and before the Results line. Clicks are kept and run after the stack returns.
The framework port removed the check for a missing cursor theme. The
framework's cursor service paints a tool cursor only while the shell has
Caps::SYSTEM_CURSOR, and the shell always had it on Linux. On a Wayland
session where no cursor theme loads, winit cannot hide or set the
pointer, so the compositor's pointer stayed and the tool cursor was
painted next to it.
cursor_theme.rs gets theme_usable and theme_missing back, and
shell_caps leaves out Caps::SYSTEM_CURSOR on Wayland when no theme
loads. The window then shows the system pointer alone, as it did before
the port (#5734). Sessions with a cursor theme, X11 and XWayland are
unchanged.
With Use Preview Bounds on, a move lined up the outside of the selection's
stroke with the other art's geometric bounds, which Smart Guides always
use for the targets. A stroked object then stopped half a stroke short of
the edge it showed a guide for, or overlapped it by that much. The moved
selection's geometric bounds now line up with the targets' geometric
bounds whatever Use Preview Bounds says. Snap to Grid, Snap to Pixel and
the ruler guides still use the bounds the bounding box shows.
Part of #6436.