Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo a42bdf8399 Variables: the highlighted-row test drives the panel through the panel harness
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.
2026-11-25 19:32:51 -08:00
dotCooCoo 541c361e8c Scripts: ScriptUI dialogs draw with craft containers, and remove() changes nothing when it fails
- 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.
2026-11-25 19:31:31 -08:00
dotCooCoo 0d5d6d34f3 Merge main into feat/color-wheel-oklch-sliders-v2 2026-11-25 19:27:00 -08:00
dotCooCoo 7a5fa63be0 Plug-ins: a command's dialog opens only for no params or ids alone
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.
2026-11-25 19:26:16 -08:00
dotCooCoo 5220c3ce4b Plug-ins: importer type and images past the canvas open nothing
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.
2026-11-25 19:25:40 -08:00
ruchirguitar 76668b82cb Merge #9352 as the History PR validation baseline 2026-11-26 08:55:31 +05:30
dotCooCoo d07ca8514c Preferences: Apply is enabled for a reset of a row a command changed
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.
2026-11-25 19:24:38 -08:00
dotCooCoo 3e5299a1d6 Shape tools: a huge circle through Shift-clicked points is previewed solid
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`.
2026-11-25 19:22:30 -08:00
dotCooCoo 6cb7fcadae Merge main into feat/quick-pen-edit-delete 2026-11-25 19:18:48 -08:00
dotCooCoo 9ddded7242 Flattener Preview: Alt-click reads Alt from the pointer frame, so a latched Alt zooms out
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.
2026-11-25 19:17:15 -08:00
dotCooCoo 046a97cb73 Merge main into feat/curvature-circle-options 2026-11-25 19:16:23 -08:00
dotCooCoo 617e00a3a4 Keyboard Shortcuts: commands without a menu path are grouped by their menu or panel
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).
2026-11-25 19:10:39 -08:00
dotCooCoo 6b7b780c22 Color Wheel: contrast measures a painting tool's color without the selection's drawing
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.
2026-11-25 19:09:41 -08:00
dotCooCoo 8ebe50e9cc Merge main into fix/swatch-drag-replaced-source 2026-11-25 19:09:36 -08:00
dotCooCoo cec8e029f7 Merge main into feat/tangent-circle-ask-radius 2026-11-25 19:05:38 -08:00
dotCooCoo 1332a448a5 Merge main into feat/plugin-api-importer-output-kinds
Importers at API level 4 also place their type, images and visible layers with File › Place; their artboards are left out.
2026-11-25 19:03:39 -08:00
dotCooCoo 476437f29d Tests: the no-document canvas test runs its frames through part_frame
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.
2026-11-25 19:03:30 -08:00
dotCooCoo ecdb9e9757 Merge main into feat/toolbar-command-buttons 2026-11-25 19:03:06 -08:00
dotCooCoo 812b6a2a92 Toolbars: command buttons skip the tool re-homing, and the protocol doc splits the remove rule
- `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`.
2026-11-25 19:01:06 -08:00
dotCooCoo 132d2da4a1 Merge main into feat/plugin-api-filter-type-images-symbols 2026-11-25 19:01:04 -08:00
dotCooCoo 16710bf8db Tests: the grid preview test draws through the shared frame helper
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.
2026-11-25 18:59:48 -08:00
dotCooCoo 7291fe1aed Merge main into feat/tangent-circle-add-points 2026-11-25 18:51:00 -08:00
dotCooCoo e8dddd17d5 Plug-ins: open_filter takes a command's objects and document with the command
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`.
2026-11-25 18:49:29 -08:00
dotCooCoo 594ebcb6e3 Merge main into feat/plugin-api-generated-art 2026-11-25 18:46:05 -08:00
dotCooCoo 1f231d14da Tests: Brush Options access names come from the dialogs' shared app frame
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.
2026-11-25 18:45:22 -08:00
dotCooCoo cb1361c889 Merge main into feat/plugins-web-worker 2026-11-25 18:45:04 -08:00
dotCooCoo a868058b44 Shortcuts: panel and dialog commands whose params are all optional can be given a key
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.
2026-11-25 18:44:51 -08:00
dotCooCoo 924c4409bb Preferences test: run the reset frame through testing::app_frame
The test of a prefs.reset run outside VectorcraftApp::run now draws its
frame with crate::testing::app_frame on the window's context.
2026-11-25 18:43:42 -08:00
dotCooCoo 66ed890366 Merge main into feat/plugin-api-javascript-runtime 2026-11-25 18:42:48 -08:00
dotCooCoo f525279b27 Merge main into feat/scripts-scriptui-dialogs 2026-11-25 18:42:43 -08:00
dotCooCoo 478ed51ace Merge main into feat/retype-installed-fonts 2026-11-25 18:40:00 -08:00
dotCooCoo acba47982f Merge main into feat/script-grants-list 2026-11-25 18:40:00 -08:00
dotCooCoo e68e05fc82 i18n: Retype messages are added in English only
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.
2026-11-25 18:39:55 -08:00
dotCooCoo e44ae5b99b Merge main into fix/variables-reclick-selects 2026-11-25 18:39:15 -08:00
dotCooCoo 06108afe3f Merge main into feat/pattern-brush-scale-pen-inputs 2026-11-25 18:37:49 -08:00
dotCooCoo 1fb8202f67 Merge main into feat/plugin-api-live-effect-appearance 2026-11-25 18:37:06 -08:00
dotCooCoo 67e6f0466e Merge main into fix/prefs-dialog-keeps-outside-changes 2026-11-25 18:37:04 -08:00
dotCooCoo a16f276f02 Merge fix/reset-preferences-interface-settings into fix/prefs-dialog-keeps-outside-changes 2026-11-25 18:37:04 -08:00
dotCooCoo b6b702f080 Merge main into fix/reset-preferences-interface-settings 2026-11-25 18:36:58 -08:00
dotCooCoo 9d34e458c1 Preferences: OK writes only the settings changed in the dialog
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.
2026-11-25 18:36:28 -08:00
dotCooCoo 280cef492e Retype: keep faces read for split shapes only
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.
2026-11-25 18:35:40 -08:00
ruchirguitar dd64c283e8 History tests: use the shared panel harness 2026-11-26 08:03:33 +05:30
dotCooCoo e70619bc4a Tangent Circle Tool: a second click replaces the open radius dialog
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.
2026-11-25 18:31:12 -08:00
FredApps ae70a8f174 Resolve main documentation conflict in History row menu PR #8845 2026-11-26 03:27:16 +01:00
dotCooCoo 6370632522 Scripts: the blendingMode test catches each refused value in the script
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.
2026-11-25 18:27:12 -08:00
dotCooCoo 32f1b14ab4 Merge main into feat/scripts-page-item-blending-mode 2026-11-25 18:26:28 -08:00
dotCooCoo 9375decc46 Merge main into fix/copy-region-ids-isolated-ancestor 2026-11-25 18:25:59 -08:00
dotCooCoo be3fd3c5a3 Merge main into fix/floating-panel-minimum-width 2026-11-25 18:25:26 -08:00
dotCooCoo 1795c050c3 Merge main into fix/gradient-midpoint-owner 2026-11-25 18:25:26 -08:00
dotCooCoo 6eec9ff0f3 Merge main into feat/plugin-api-context-menus 2026-11-25 18:25:26 -08:00