100 Commits
Author SHA1 Message Date
.CooCoo d76abce927 Merge pull request #9974 from dotCooCoo/fix/status-bar-zoom-presets
Status bar: the zoom field's presets menu lists the zoom stops, Fit on Screen and Fit All again
2026-11-28 14:18:21 -08:00
dotCooCoo c2ef3ae57b Merge main into fix/status-bar-zoom-presets
# Conflicts:
#	crates/ui-egui/src/chrome/status_bar.rs
2026-11-28 14:17:28 -08:00
.CooCoo 6467317a97 Merge pull request #9966 from dotCooCoo/fix/ui-sweep-dock-panels-a
UI: Swatches footer stays in view; Stroke arrowhead rows line up
2026-11-28 14:13:39 -08:00
.CooCoo 3bdaa5bcc0 Merge pull request #9991 from dotCooCoo/fix/main-docking-test-next-back
Main: the flyout grip test finds its grip with rfind
2026-11-28 14:10:39 -08:00
dotCooCoo 0cc8be8eb3 Panel docking: the flyout grip test finds its grip with rfind
#9964's floating-group test took the last grip matching the tab's row with filter(..).last(), which clippy's -D warnings rejects on a double-ended iterator (double_ended_iterator_last, then filter_next_back), so main's gate failed at clippy on crates/ui-egui/src/panel_docking/tests.rs:1118. It now uses rfind, which returns the same grip.
2026-11-28 14:10:36 -08:00
.CooCoo 3e9b4f735c Merge pull request #9947 from dotCooCoo/fix/anchor-inspector-accepted
Anchor Inspector: canceling a field edit restores the anchor or the Points per segment count
2026-11-28 13:40:00 -08:00
.CooCoo 471433d007 Merge pull request #9952 from dotCooCoo/train/carry9280
Title bar: the Close caption button closes the window
2026-11-28 13:39:46 -08:00
dotCooCoo 518bfef631 Merge main into fix/ui-sweep-dock-panels-a
# Conflicts:
#	crates/ui-egui/src/panels/swatches.rs
2026-11-28 13:39:40 -08:00
.CooCoo 854e5a5d5d Merge pull request #9977 from dotCooCoo/fix/packaging-fold-angle
Packaging: canceling a Fold Angle edit restores the fold lines' angles
2026-11-28 13:39:33 -08:00
.CooCoo 972543fc8d Merge pull request #9982 from dotCooCoo/fix/transform-each-copy-refusal
Transform Each: a refused Copy keeps its reason under the rows
2026-11-28 13:39:13 -08:00
.CooCoo 455e441ca9 Merge pull request #9987 from dotCooCoo/fix/jitter-keeps-link-when-unchanged
Brushes: a jitter too small to change a color keeps its swatch link
2026-11-28 13:38:39 -08:00
.CooCoo 0aacac4bf2 Merge pull request #9944 from dotCooCoo/train/carry9162
Anchor Point: Shift keeps handles pulled out of an anchor at 45° steps
2026-11-28 13:37:55 -08:00
.CooCoo 2cf256b441 Merge pull request #9967 from dotCooCoo/fix/new-document-layout
New Document: labels above fields, full-width fields and one Bleed row
2026-11-28 13:37:51 -08:00
.CooCoo 45cf1ebb93 Merge pull request #9943 from dotCooCoo/fix/halftone-revert
Vector Halftone: OK after File > Revert no longer applies the old draft
2026-11-28 13:37:20 -08:00
.CooCoo 0a8c0ee145 Merge pull request #9954 from dotCooCoo/train/carry8285
Stroke: Notched Arrow arrowhead, carried from #8285 with main merged in
2026-11-28 13:37:14 -08:00
.CooCoo 71417b98b0 Merge pull request #9968 from dotCooCoo/fix/ui-sweep-toolbar-controlbar
UI: Tools panel chips share a line, a rule parts the tools from the controls, the drawer labels Show
2026-11-28 13:37:01 -08:00
.CooCoo 57c99214cd Merge pull request #9986 from dotCooCoo/fix/cad-symbol-budget-kept
DXF and HP-GL export: a rejected symbol instance keeps the budget for later art
2026-11-28 13:36:56 -08:00
.CooCoo d07b1abca4 Merge pull request #9964 from dotCooCoo/fix/floating-group-from-icons
Docking: a group dragged out of the icon column floats expanded and its tabs switch
2026-11-28 13:36:53 -08:00
.CooCoo ffbaae4e36 Merge pull request #9969 from dotCooCoo/fix/issue-8307
Swatches: the footer stays inside the panel when the list fills it (#8307)
2026-11-28 13:36:49 -08:00
.CooCoo 747dd28162 Merge pull request #9973 from dotCooCoo/fix/layers-drop-filter-tests
Layers: the trash footer takes an appearance dragged from a target circle
2026-11-28 13:36:43 -08:00
.CooCoo 91e7079a59 Merge pull request #9979 from dotCooCoo/fix/ui-perf-5-canvas-status-bar
Performance: the canvas measures the document once per revision, and idle frames replay the status bar navigation
2026-11-28 13:36:22 -08:00
dotCooCoo c19cba9fdd Brushes: a jitter too small to change a color keeps its swatch link
Hue and saturation jitter replaced a linked solid paint with an unlinked
one whenever the adjustment returned a color, even when rounding to f32
gave back the same components (a hue jitter of 1e-50 degrees, or a Lab
saturation jitter of 1e-6). recolor_paint now keeps the paint, and its
link, when the adjusted color equals the original. Follows #9929, which
added the same rule for Brightness Jitter.
2026-11-28 13:28:33 -08:00
dotCooCoo 9f815a76e7 DXF and HP-GL export: a rejected symbol instance keeps the budget for later art
The DXF and HP-GL writers set the expanded-object count to the 16,000,000
limit when one symbol instance was too large for what was left, so every
later instance was left out even when it fit. A rejected instance now
leaves the count unchanged, as the PDF and .ai editing writers do. Tests
preload the count per test instead of starting every export near the limit.

Follows #9751, which made the same change in the EPS, legacy .ai and
metafile writers.
2026-11-28 13:22:38 -08:00
dotCooCoo 46e61230e2 Status bar: the zoom presets menu leaves out stops outside the zoom range
With Display Print Size on, 100% is not one screen point per document
point, so a stop at either end of the list can fall outside the view's
zoom range (WindowView::ZOOM_RANGE). Picking it set the nearest end of
the range instead: at 96 PPI the 64000% entry showed 48000%. The menu
now lists only the stops that view.setZoom sets exactly.
2026-11-28 13:20:28 -08:00
.CooCoo 378ab8525e Merge pull request #9950 from dotCooCoo/train/carry9243
Missing Fonts: a folder search finds the file of a PostScript name split into family and style (carries #9243)
2026-11-28 13:15:06 -08:00
.CooCoo 727bb44ce1 Merge pull request #9980 from dotCooCoo/fix/ui-perf-4-panels-dock-specs
Tools, Properties: the tool rail and Quick Actions are rebuilt only when their inputs change
2026-11-28 13:15:00 -08:00
.CooCoo 542a7f8d82 Merge pull request #9985 from dotCooCoo/fix/select-highlight-reads-2
UI: Bullets, character color, composite font, Map Art and Find Font lists apply only a chosen entry
2026-11-28 13:14:56 -08:00
dotCooCoo 24b5930cc8 Swatches: the footer reads the panel's selection and kind filter
The panel model is out of the app while the swatch browser draws, so the
footer read an empty selection and the default kind filter: Swatch
Options and Delete Swatch stayed disabled with a swatch selected, and
Show Swatch Kinds never showed as pressed. The footer now takes its
state from the model the browser holds.
2026-11-28 13:10:23 -08:00
dotCooCoo d8cda92ae1 Merge main into fix/new-document-layout 2026-11-28 12:51:42 -08:00
.CooCoo 4fbdee81fc Merge pull request #9953 from dotCooCoo/fix/three-d-dialog-tests
Main: the Color Wheel and script window tests pass, and stroke.set refuses a bad target
2026-11-28 12:38:52 -08:00
dotCooCoo fdfe7708d8 Transform Each: a refused Copy keeps its reason under the rows
The Copy button set a `copy` field before confirming, and a refusal turned
it off again. The dialog ends a refusal when its values change, so the
reasons "switch back to the document where Transform Each was opened",
"the document where Transform Each was opened has closed", "finish the
active edit before applying Transform Each" and the revert reason were
shown for no frame under the rows.

Copy is no longer a dialog field. The dialog records that the held OK came
from Copy and passes `copy: true` to `object.transformEach` for that
confirm only. A refused Copy leaves the values unchanged, so its reason
stays until a value changes, and the next plain OK does not copy. A press
of Copy while an OK is already waiting does not turn it into a copy.
2026-11-28 12:38:47 -08:00
dotCooCoo fe15116f4c UI: Bullets, character color, composite font, Map Art and Find Font lists apply only a chosen entry
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.
2026-11-28 12:37:36 -08:00
dotCooCoo 0df72cd9b4 Merge main into fix/ui-perf-4-panels-dock-specs 2026-11-28 12:32:34 -08:00
dotCooCoo 880fcb1973 Tools, Properties: the tool rail and Quick Actions are rebuilt only when their inputs change
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.
2026-11-28 12:32:34 -08:00
dotCooCoo c9422ed804 Merge main into fix/ui-perf-5-canvas-status-bar 2026-11-28 12:29:40 -08:00
dotCooCoo 86c767d0e1 Merge main into fix/three-d-dialog-tests 2026-11-28 12:22:37 -08:00
dotCooCoo 8285a7b2cf Stroke: a test that stroke.set refuses a bad target with an id
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}.
2026-11-28 12:22:26 -08:00
dotCooCoo e86a08ef9e Canvas: measure the document once per revision, replay the status bar navigation
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.
2026-11-28 12:15:52 -08:00
dotCooCoo 8f2574c463 Merge main into fix/new-document-layout 2026-11-28 12:09:13 -08:00
.CooCoo 7ac0981dac Merge pull request #9978 from dotCooCoo/fix/main-id-catalog-duplicates
Main: the Indonesian catalog lists five opacity messages once
2026-11-28 12:05:33 -08:00
dotCooCoo 0f2c1f9370 i18n: drop the second copy of five Indonesian opacity messages
#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.
2026-11-28 12:05:17 -08:00
dotCooCoo 38f28d231b Paint: the early target read names the case it still covers
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.
2026-11-28 12:03:06 -08:00
dotCooCoo 55e8083aff Scripts: the control-size test measures the field by its name
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.
2026-11-28 12:03:06 -08:00
dotCooCoo fcc2289042 Color Wheel: the null-key test expects the contrast settings
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.
2026-11-28 12:03:06 -08:00
dotCooCoo 5b38057218 i18n: id catalog defines the opacity messages once
#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.
2026-11-28 12:03:06 -08:00
dotCooCoo e87a7f09d9 Paint: a bad target is refused when ids or id names the objects
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.
2026-11-28 12:03:06 -08:00
dotCooCoo c4c672a855 Merge main into fix/three-d-dialog-tests 2026-11-28 12:03:06 -08:00
dotCooCoo e508073632 3D: take main's OK fix instead of this branch's
#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.
2026-11-28 12:03:06 -08:00
dotCooCoo e9b43dbebc New Document: the Bleed link sets every side to Top when turned on
Turning the Bleed link on sets all four sides to Top's bleed, as the
linked fields did before the row was rebuilt. A drag on a side's name
scrubs its field again.
2026-11-28 11:46:41 -08:00
dotCooCoo 950e432a57 Packaging: canceling a Fold Angle edit restores the fold lines' angles
The Fold Lines panel's Fold Angle field ran addon.packaging.setFoldAngle
with each value as it was typed, so Escape left the typed angle on the
selected lines. The field's edits now run in one undo scope
(EditPath::Scope, as the Parametric Shape panel does): Enter keeps the
angle as one undo step, and Escape restores the lines and leaves no
undo step.
2026-11-28 11:41:07 -08:00
dotCooCoo 73b12022a8 Merge main into fix/status-bar-zoom-presets 2026-11-28 11:36:15 -08:00
dotCooCoo 48185c3801 Status bar: the zoom field's presets menu lists the zoom stops, Fit on Screen and Fit All again
The move to the craft UI framework left the status bar's zoom field without its presets menu. A Zoom Presets button beside the field opens a menu of the zoom stops, the current one checked, then Fit on Screen and Fit All; each entry runs view.setZoom, view.fitArtboard or view.fitAll.
2026-11-28 11:36:15 -08:00
.CooCoo a894a03ec4 Merge pull request #9971 from dotCooCoo/fix/main-canvas-reproject-snap
Main: only a canvas frame shown for its own view snaps to whole device pixels
2026-11-28 11:29:21 -08:00
dotCooCoo 488c7cba0c Canvas: only a frame shown for its own view snaps to whole device pixels
#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.
2026-11-28 11:29:06 -08:00
.CooCoo 365b24bdf4 Merge pull request #9970 from dotCooCoo/fix/main-revolve-lighting
Main: 3D dialogs end the running preview before OK checks the values again
2026-11-28 11:26:09 -08:00
dotCooCoo 741b18b558 3D: OK ends the running preview before checking the values again
#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.
2026-11-28 11:25:23 -08:00
dotCooCoo 4817c15d0a Layers: the trash footer takes an appearance dragged from a target circle
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).
2026-11-28 11:23:44 -08:00
dotCooCoo 433a535e3f Tests: format the drawer Show label test 2026-11-28 11:17:04 -08:00
.CooCoo 08c47b226d Merge pull request #9965 from dotCooCoo/fix/main-paintopacity-bad-target
Main: an opacity call refuses a bad target with an id or selected characters
2026-11-28 11:15:00 -08:00
dotCooCoo 3dfd7393c2 Paint: an opacity call refuses a bad target with an id or selected characters
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.
2026-11-28 11:14:37 -08:00
dotCooCoo a0058a06e6 Merge main into fix/issue-8307 2026-11-28 11:03:02 -08:00
dotCooCoo 4e7d97224a Merge main into fix/new-document-layout 2026-11-28 11:02:27 -08:00
dotCooCoo b909d57912 New Document: labels above fields, full-width fields and one Bleed row
Preset Details puts each label above its field at the field's left edge:
Width, Height, Orientation, Artboards, the four Bleed sides and
Background Contents. The fields fill the column. Height, Orientation and
Artboards share one row, with a larger share for Orientation so its two
buttons stay side by side in a 900 by 700 window.

The four Bleed fields sit in one row, each under its side's name, with
the link button at the end. The row wraps when the column has no room
for all four, so Left and Right no longer run past the dialog's right
edge. A linked edit sets all four sides; an unlinked one sets its side.

More Settings and Manage Profiles are full-width buttons, one above the
other.
2026-11-28 11:02:25 -08:00
dotCooCoo b43ba33df5 Merge main into fix/ui-sweep-toolbar-controlbar 2026-11-28 11:00:08 -08:00
dotCooCoo 90ca1689c0 UI: Tools panel chips share a line, a rule parts the tools from the controls, the drawer labels Show
In a one-column rail the Color, Gradient and None chips sit a tight gap
apart, as the drawing-mode buttons do, so None no longer wraps onto a
line of its own. A rule separates the tools, which scroll in a short
rail, from the Fill and Stroke proxy and the controls under it, so the
last visible tool is no longer cut off against the proxy. The All Tools
drawer's Show toggles sit in a field labeled "Show:" again.
2026-11-28 11:00:07 -08:00
dotCooCoo 14f4584e87 Merge main into fix/floating-group-from-icons 2026-11-28 10:53:13 -08:00
dotCooCoo bd9591e08f Docking: a group dragged out of the icon column floats expanded
A tab group dragged out of the icon column by its grip floated as a new
window that kept the icon column's collapsed state. The window showed
the group as a narrow flyout from an icon, its tab names were cut off,
and a click on a tab did not switch the panel.

After each dock pass, a floating window the pass made from part of a
column collapsed to icons is expanded. A whole icon column floated
stays collapsed.
2026-11-28 10:53:06 -08:00
.CooCoo fb450d346d Merge pull request #9961 from dotCooCoo/fix/ui-sweep-dialogs
UI: dialog option rows stand beside or under their choice
2026-11-28 10:52:18 -08:00
dotCooCoo aaa036511c UI: format the Stroke panel and row test changes 2026-11-28 10:20:14 -08:00
dotCooCoo 1da25b57b5 Merge main into train/carry9280 2026-11-28 10:09:36 -08:00
dotCooCoo 4617b6d9a3 Merge main into fix/ui-sweep-dock-panels-a 2026-11-28 10:08:20 -08:00
dotCooCoo caea04fe42 UI: Swatches footer stays in view; Stroke arrowhead rows line up
- Swatches: the swatch browser fills the room the footer leaves, so
  Swatch Libraries, Show Swatch Kinds, Swatch Options, New Color Group,
  New Swatch and Delete Swatch show under the swatches again, docked
  and floating. The browser used to take the whole panel height and
  push the footer out of view.
- Stroke: the start and end arrowhead fields show their pictures and
  share one line with Swap, as before the framework port. They used to
  take a line each, with Swap on a third.
- Stroke: the arrowhead Scale and Align rows show their labels in the
  label column.
2026-11-28 10:08:19 -08:00
.CooCoo d35b46e311 Merge pull request #9958 from dotCooCoo/fix/ui-sweep-menus-popups
Global Edit: options popover groups its options a stack gap apart
2026-11-28 10:00:26 -08:00
.CooCoo 2d3ac100c5 Merge pull request #9956 from dotCooCoo/fix/issue-5311
Fix #5311: on Wayland with no cursor theme, the tool cursor is not painted beside the system pointer
2026-11-28 09:56:26 -08:00
dotCooCoo e4a73f971a Swatches: the footer stays inside the panel when the list fills it
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).
2026-11-28 09:55:34 -08:00
dotCooCoo fd5094286e Merge main into fix/ui-sweep-dialogs 2026-11-28 09:50:06 -08:00
.CooCoo cbf1516c4f Merge pull request #9955 from dotCooCoo/fix/ui-sweep-canvas-chrome
UI: the Rotate View compass clears the scroll bar, and the empty artboard navigator shows a dash
2026-11-28 09:45:49 -08:00
.CooCoo 26cf360e22 Merge pull request #9951 from dotCooCoo/fix/ui-sweep-title-window
App bar: Discord, search and workspace switcher stand an item gap apart
2026-11-28 09:43:49 -08:00
dotCooCoo 25560e9259 Merge main into fix/three-d-dialog-tests 2026-11-28 09:43:09 -08:00
dotCooCoo 1628311e6b 3D: OK keeps the running preview and commits it
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
2026-11-28 09:40:45 -08:00
dotCooCoo 84eef86c0a UI: dialog option rows stand beside or under their choice
- 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.
2026-11-28 09:39:38 -08:00
.CooCoo d7a00b3aff Merge pull request #9948 from dotCooCoo/fix/issue-6436-snap-geometric-edges
Smart Guides: a move lines up geometric edges with Use Preview Bounds on
2026-11-28 09:39:31 -08:00
dotCooCoo 5c342b79d8 Tests: the title bar's Close caption button closes the window
The test opens the app with the integrated title bar used on Windows,
clicks the Close caption button and checks that the main window is asked
to close, then that a modified document keeps the window open with the
Unsaved Changes question. It fails without the fix.
2026-11-28 09:38:16 -08:00
dotCooCoo a7e20825da Title bar: send the caption Close through the window host
The close the Close caption button asks for goes through
WindowHost::act with WindowAction::Close, the sender the title bar uses
for Minimize and Maximize, in place of a raw ViewportCommand::Close.
2026-11-28 09:38:16 -08:00
dotCooCoo ec1e3a8254 Merge main into fix/ui-sweep-menus-popups 2026-11-28 09:36:35 -08:00
dotCooCoo 84d8e06f8a Global Edit: options popover groups its options a stack gap apart
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.
2026-11-28 09:36:34 -08:00
dotCooCoo 3c6d2234a1 Merge main into fix/issue-6436-snap-geometric-edges 2026-11-28 09:35:41 -08:00
dotCooCoo 6018923f1f Merge main into fix/issue-5311 2026-11-28 09:35:36 -08:00
dotCooCoo c7893667de Fix #5311: on Wayland with no cursor theme, the tool cursor is not painted beside the system pointer
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.
2026-11-28 09:35:35 -08:00
dotCooCoo 2eb79ddfb4 Smart Guides: a move lines up geometric edges with Use Preview Bounds on
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.
2026-11-28 09:34:39 -08:00
dotCooCoo 69e8a0a392 Fonts: offer a split PostScript name's file only when installing it resolves the name
The joined-name check now matches the face's PostScript name only, as
`FontDb::canonical` does for cataloged faces, so a file that carries the
joined name only as a full name is no longer offered. A legacy family of
the wanted name now decides the result, looking for the style in the
family of each of its faces, since `canonical` does not join the name
when the legacy family resolves it.

Tests cover the full-name and legacy cases against `FontDb::resolve`,
and a collection whose faces share a legacy family in either order.
2026-11-28 09:33:49 -08:00
dotCooCoo e8fc951d92 Merge main into fix/ui-sweep-canvas-chrome 2026-11-28 09:26:30 -08:00
dotCooCoo 745a0d5b7b UI: canvas chrome clears the scroll bar and the empty navigator
- The Rotate View compass of a turned view sits left of the vertical
  scroll bar. It was placed in the canvas's top right corner, where the
  scroll bar drew over most of it.
- With no document open, the status bar's artboard navigator shows a
  dash instead of an empty box.
2026-11-28 09:26:23 -08:00
dotCooCoo 42528add34 i18n: Notched Arrow ships with its English label only
Feature changes add English strings only; translations go through
storytold/craft-i18n (AGENTS.md rule 16). The 28 catalog rows are
removed, and the menu shows "Notched Arrow" until a translation lands.
2026-11-28 09:22:37 -08:00
.CooCoo ce4b132646 Merge pull request #9945 from dotCooCoo/fix/canvas-hidpi-strokes
Canvas: art lands on whole device pixels, so strokes stay sharp on HiDPI displays
2026-11-28 09:22:15 -08:00
dotCooCoo 51fde185e2 Merge main into fix/ui-sweep-title-window 2026-11-28 09:21:13 -08:00
dotCooCoo cd1d4ed864 App bar: Discord, search and workspace switcher stand an item gap apart
The title bar laid the app bar's right-hand controls out at the body's
row gap (5 pt in the compact sizes), so the hovered search button's
highlight came within 5 pt of the Discord button and the workspace
switcher. They now sit in a row at space.gap.item, the gap the framework
gives neighboring controls in a bar. The ranked controls still leave the
bar whole, Discord first, as the window narrows.
2026-11-28 09:21:11 -08:00
dotCooCoo 118a242401 Anchor Point: constrain pulled-out handles round the anchor the preview edits
Each preview runs on the document as the interaction began, and spine edits
pin the spine from that document (live::pin_spine). Shift now measures the
45 degree steps from that anchor, so the handles the command writes stay on
the steps after a previewed move. docs/mcp.md says when pointer_gesture's
Shift moves the anchor and when it constrains the handles.
2026-11-28 09:14:53 -08:00
.CooCoo 98c3a3fe08 Merge pull request #9942 from dotCooCoo/train/carry6115
Panels: the Artboards panel's list fills the panel and resizes with the window (#6085)
2026-11-28 09:07:53 -08:00
dotCooCoo d9c28efd41 Artboards: port the panel-height test to the page list
main draws the Artboards panel with the shared page list, whose list
fills the panel above its footer. The test now drives that panel
through the panel harness: in a 300 pt and a 700 pt panel the New
Artboard button ends inside the panel at its bottom and follows its
height, and with 36 artboards the last row lies below the footer.

The ui-parity and target-app-parity rows describe the list as it is
drawn now, and a stray tab in the test name is fixed.
2026-11-28 08:57:10 -08:00