Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo fbb3f4b59f Window menu: panel rows show their panels' shortcuts
Each Window menu row ran `window.panel {panel, toggle: true}`, while the
panel's shortcut entry (`panel:<id>`) binds `window.panel {panel}`. The
menu row was a separate command with no binding, so no Window row showed
a chord, as production's did.

The rows now name the command the shortcut runs, and the catalog holds
one command per panel. `ui.menu.list` still lists each Window row with
`toggle: true`, and a click on the row runs those listed params, so a
click puts a showing panel away as before. A plug-in row that shows a
panel the Window menu does not list (Fold Lines) keeps its params.
2026-11-24 15:18:50 -08:00
dotCooCoo 79f5165ed1 Previews: hand-drawn previews take the theme's sizes, colors and stroke widths
- Paintbrush, Blob Brush and Eraser options: the tip dabs draw in a
  framework picture at the small sample size, in the muted and normal
  text colors.
- Calligraphic Brush options: the nib preview's paper, nib and guide
  grays draw as data colors, its guides at the thin stroke width.
- Graphic Styles: the large tip's texture, and the white tile a
  thumbnail shows before it loads, draw through the framework painter.
- 3D Classic: Map Art's preview takes the plot size and item gap; the
  track cube and Map Art share one set of documented surface grays.
- Transparency: the object thumbnail's fill draws as a data color, and
  a disabled mask's cross at the thick stroke width.
- Swatches: None's slash and a disabled mask's cross share one red,
  drawn as a data color at the medium and thick stroke widths.
- Revolve gizmo: the axis letters, light labels and readouts are text
  runs in the label type role, and an axis letter's plate grows with
  the letter.
2026-11-24 15:10:00 -08:00
.CooCoo 9d050d2b01 Libraries panel: graphic and pattern thumbnails come from the framework's thumbnail store (Thumbnails with a ThumbSource), decoded a few a frame and kept per item and size, as the Symbols panel's are (#9232) 2026-11-25 06:00:27 +07:00
dotCooCoo 0ac526a475 Recolor Artwork: the row arrows draw, and a test checks that icon ids resolve
The recolor and exclude toggle on each Recolor Artwork row asked for the
icons dc-recolor-arrow and dc-recolor-arrow-off, which no icon set had, so
the button drew nothing. The two icons are added: a right arrow for a row
that is recolored and a dashed line without a head for a row that is
excluded, each with its ASSETS.md row and icon_data.rs entry.

A new test, icons::tests::every_icon_id_literal_and_panel_icon_resolves,
reads the crate's source and checks that every icon id written as a
literal or a const, and every icon panel's and dock tab's icon, resolves
in the icon catalog or the app's own set. It fails without the two
icons.
2026-11-24 14:45:18 -08:00
Carlo1911andClaude Sonnet 5.5 eb3b83f509 Missing Fonts: a folder search finds the file of a PostScript name split into family and style (#9242)
A document names Gilroy-Black as the family Gilroy in the style Black. WantedFonts only indexed and checked the family name, so a file whose own family is Gilroy-Black, with no style, was never offered, although FontDb::canonical finds that face by its PostScript name once it is cataloged. The joined family and style is now indexed and accepted against a face's PostScript or full name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 17:28:14 -05:00
dotCooCoo ee9b2cfd03 Dialogs: rows of controls in dialogs and add-ons are framework Rows and Stacks, so a dialog takes the width of its rows
A dialog's custom row drawn as a raw egui layout measured as wide as the room it was offered, so DXF Options, New
Swatch, PNG and JPEG Options and Radial Blur opened at the window's full width. The rows in the export options, Save
Options, Document Setup, Swatch Options, the effect rows, the Clean Up and color add-ons, the edit toolbar, Edit
Original and the preferences file buttons now use Row and Stack.

A framework container may run its body more than once in a pass. Presses and picks inside a body are kept in locals and
applied after it: the HP-GL pen rows apply Add, Remove and the Pen Table switch once, and the legacy board picker
toggles a board once.
2026-11-24 14:17:19 -08:00
dotCooCoo d1d2cb4c26 Merge main into fix/eps-discard-white-overprint 2026-11-24 13:58:57 -08:00
dotCooCoo ea602fcd00 Undo: Find Objects with select during a drag is a step of its own
document.find with `select: true` is journaled, so during a tool drag it
now runs outside the drag like other journaled commands. It finds and
selects only objects outside the drag's preview, as its replay before
the drag does.
2026-11-24 13:54:07 -08:00
dotCooCoo da4cc3e9f9 Merge main into feat/inscribed-circle 2026-11-24 13:39:51 -08:00
dotCooCoo 5813d26ce7 Merge main into perf/docinfo-cached-rows-no-copy 2026-11-24 13:38:17 -08:00
dotCooCoo e323636ac8 Scripts: the report lists a ScriptUI dialog before the dialogs its handlers open
A ScriptUI dialog's record was added when its show() ended, so an alert,
confirm or prompt a handler opened came first in the report's dialogs.
The record now keeps the place the dialog took when it opened. When the
dialogs its handlers opened leave no room for it, the last of them are
dropped until it fits, and the list stops before it when it does not fit
alone, so the list keeps the first dialogs in the order they opened.
2026-11-24 13:24:00 -08:00
ruchirguitar e78f196dcc Merge main and port Variables row menus to Craft UI 2026-11-25 02:48:51 +05:30
dotCooCoo 14fb78aa39 Merge main into fix/save-for-web-shift-edits
Main moved Save for Web's color table edits to dialogs/save_for_web/color_table.rs. The 256-shift limit and the matching of colors written another way now live there, with their tests in tests_table.rs.
2026-11-24 13:12:39 -08:00
dotCooCoo 83dcc4b6be Merge main into fix/place-empty-password-links 2026-11-24 13:09:33 -08:00
dotCooCoo 7a37e282d9 Undo: putting back a drag's paints names every PaintDefaults field
put_back_interaction compares the new-art paints field by field. It now
destructures PaintDefaults without `..`, so a field added to the struct
does not compile until it is handled there.
2026-11-24 12:50:43 -08:00
Carlo1911andClaude Sonnet 5.5 c08a99e0d0 AI import: a compound path with the gradient on its last path stays one compound path (#9239)
Illustrator writes a gradient instance around only the last path of a compound path; the paths before it keep the default fill. paints_apart read that as a drawn look whose paths paint apart, so a sunburst's rays became black paths plus one gradient path. Several alike paths followed by one painted with a gradient or pattern are now the subpaths of one compound path, which takes the last path's paint.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 15:44:14 -05:00
dotCooCoo 566be2a5c5 Merge main into fix/font-menu-test-order 2026-11-24 12:35:25 -08:00
dotCooCoo ecebe5f1d1 Merge main into feat/color-wheel-opacity 2026-11-24 12:33:59 -08:00
dotCooCoo 8f474a41a3 Merge main into fix/white-spot-ink-overprints
The white checks for colorized images in PDF export, EPS export and Print
Ink Fixes now go through DiscardWhite, which replaces
Document::spot_ink and Document::discards_white_overprint. Printed
separations read DiscardWhite with the spot inks they print, so a white
spot ink converted to process inks knocks out there.
2026-11-24 12:31:45 -08:00
dotCooCoo b13207d6bd Merge main into fix/place-at-once-pdf-text-as 2026-11-24 12:07:03 -08:00
dotCooCoo ec42aea37f Merge main into fix/library-numbered-tint-names 2026-11-24 11:36:43 -08:00
dotCooCoo 76c4689e02 Save for Web: shifts the engine drops do not count toward the 256 limit
A key shifted to itself or a deleted color no longer counts toward the
256 shifts, and a new shift writes `shifted` without those entries. A
map the engine refuses (a key or value that is not a color, two keys
naming one color) is kept whole, so the engine still reports it.

Docs: docs/mcp.md.
2026-11-24 11:33:29 -08:00
dotCooCoo 46dee92f48 Docs: a button whose command is gone keeps its own label
The progress line said such a button is labeled with its command's id.
A renamed button shows its own label, and only a button without one
shows the id.
2026-11-24 11:24:59 -08:00
dotCooCoo 11e53bfe2e Merge main into fix/plugin-result-limit 2026-11-24 11:13:19 -08:00
dotCooCoo e990b43681 Merge main into feat/scripts-api-d7b-tags-notes-uuid
New Document's More Settings now shows the columns a preset's rows give
the current artboards, and a new layout or column count replaces those
rows, in the dialog main rewrote.
2026-11-24 10:50:38 -08:00
dotCooCoo a58150198f Pathfinder: Outline's junction distance scales with the art and the precision together
Outline joined crossings closer together than the art-size tolerance
multiplied by precision / 0.01. Scale Strokes & Effects scales the art and
the precision together, so scaling both by 10 made that distance 100 times
larger, and crossings that were apart could become one junction.

The distance is now precision / 10000, or the tolerance for the art's
size when that is larger. At the 0.01 pt default it is 0.000001 pt as
before, and scaling the art and the precision together gives the same
pieces at the new size. The params text of object.pathfinder.options and
of the Pathfinder effects, docs/mcp.md and the Pathfinder Options line in
docs/target-app-parity.md describe the new rule.
2026-11-24 10:47:51 -08:00
Terra854 b6a198ee5d Merge remote-tracking branch 'upstream/main' into refactor/shared-classic-hpgl 2026-11-25 02:29:47 +08:00
dotCooCoo 232b3de397 Tests: drag command test uses craft::automation's request and reply types
After the craft UI framework move, `control` no longer exports
`ControlRequest` or `Outcome`; `control::handle` takes a
`craft::automation::ControlRequest` and returns a `Reply`.
2026-11-24 10:17:18 -08:00
ruchirguitar 6343a7753a Merge origin/main into cursor/doc-info-selection-only 2026-11-24 23:47:16 +05:30
dotCooCoo 06b483320e Merge main into fix/command-during-interaction 2026-11-24 10:12:16 -08:00
dotCooCoo b6d24816a8 Toolbars: Rename Button's Label field takes the focus, and a workspace switch closes the dialog
- The Label field takes the keyboard focus with its text selected when the
  dialog opens, so typing right away goes into it.
- Switching workspaces closes Rename Button, so OK cannot rename a button
  of the same name on a toolbar of the same name in the other workspace.
- The params text and docs say a screen reader reads only the label when it
  is the command's label or name, and that a null `label` opens the dialog.
2026-11-24 10:07:35 -08:00
.CooCoo 8e7a6142fc JavaScript: a trailing comma ends call arguments and parameter lists (#9189) 2026-11-25 00:56:02 +07:00
.CooCoo 4c60269d1a Select: adding objects one at a time checks and reads only the added ones (#9145) 2026-11-25 00:55:44 +07:00
.CooCoo 5f35daad7b Scripts: File and Folder give their localizedName (#9185) 2026-11-25 00:54:37 +07:00
dotCooCoo 782715d467 Undo: a drag after a command replays on its own objects
When a command run during a tool drag deletes, hides or locks an object
that the drag's preview names in its ids, the preview applied again
leaves that object out, so the drag still edits the others. A preview
left naming no object records no step.

When the command changes the selection, the journal also records the
drag's own selection after the command (select.set, with its anchors,
segments, guides and key, or its slices, target, symbol part or Objects
on Path member), so replaying the journal moves the objects the drag
moved. A targeted object keeps its guides and key, and a path with
every anchor selected keeps them selected as anchors. The current layer
and the highlighted Layers panel rows are left as the drag left them.
2026-11-24 09:52:58 -08:00
dotCooCoo abdc57c306 Pathfinder: Outline keeps boundaries that meet only at their ends and middle
Outline treated two chains as one edge when their start, end and midpoint
were within the merge distance. At a coarse Precision, two closed
boundaries that share those three points but part elsewhere (an ellipse
inside a circle, touching at its rightmost and leftmost points) became
one edge, and the inner boundary was dropped.

The ends and midpoint now only pick the candidates. Two chains are one
edge when each lies within the merge distance of the other along its
whole length: every piece is checked at points no farther apart along its
control polygon than that distance, at most 64 to a piece, always
including its middle. Chains whose pieces pair up with control points
within the distance are taken without sampling, so copies of a detailed
path cost no more to merge than before.
2026-11-24 09:41:20 -08:00
dotCooCoo 798b829c28 Merge main into feat/plugin-api-javascript-runtime 2026-11-24 09:30:33 -08:00
dotCooCoo cef8a6d897 Plug-ins: background loads check stored files and ids again before they install
- A stored module's file is read again on its worker thread once the module
  has loaded, whatever the file's modified time, and the install still skips
  a file whose stamp changed since. The UI thread no longer reads the file.
- Stored and folder modules install through registry::install_for_load,
  which checks for an install or removal of the id elsewhere while the
  plug-ins' write lock is held, and records the module's grant in the same
  step. A grant is forgotten only while the plug-in that took that revision
  is still installed (registry::revoke_if_installed).
- A grant that a stored load removed and must put back for a later file is
  written to grants.json first; when that write fails, the module is not
  installed, and a grant put back for a module that then did not install is
  removed again.
- A folder load in which a file found no loader thread is loaded again the
  next time the preferences are applied. A plugin.reload keeps its report as
  the folder last loaded only when no load started after it.
- Loads: a job's time is read while it is marked finished, the deadline check
  reads the clock under the same lock, and only the jobs taken from the queue
  fail when no worker is left. wait() counts outcomes taken with ready() as
  released, so the jobs after them start.
- File › Open checks the path again after waiting for the plug-in loads.
- Tests wait for workers with bounded receives.
2026-11-24 09:27:50 -08:00
dotCooCoo 287a05c857 EPS: spot white keeps overprinting with Discard White Overprint
Discard White Overprint covers process white only. A white fill or
stroke linked to a spot swatch at a tint above 0% is written as its own
Separation ink and now keeps overprinting. Global process swatches, a
0% tint and a spot swatch without a color still knock out.
2026-11-24 09:23:14 -08:00
dotCooCoo a0e2aa6c19 Merge main into feat/scripts-scriptui-dialogs 2026-11-24 09:22:14 -08:00
dotCooCoo c0f91bc820 Save for Web: the color table's selection matches a color written another way
- A selected color or list entry written another way (`#00F` for
  `#0000ff`) now names its table color: Lock, Transparent, Web Shift and
  Delete Color act on it and write it as the table does, and the ring
  and button labels follow it.
- Delete Color compares the table's lists as colors, so deleting the
  only color left is refused when the selection or a list is written
  another way, and a deleted color is taken out of the Lock, Transparent
  and Web Shift lists however they write it.
- A Ctrl-click on a selected color takes out every selection entry that
  names it.
- A spelling with alpha (`#rrggbbaa`) names no table color, as the
  engine reads the table.

Docs: docs/mcp.md.
2026-11-24 09:17:09 -08:00
dotCooCoo b4c214169b Merge main into feat/quick-pen-length-handles 2026-11-24 09:16:09 -08:00
dotCooCoo 90a1700a1c Merge main into fix/dynamic-text-leading-line-gap 2026-11-24 09:14:38 -08:00
dotCooCoo aff4833d16 Merge main into feat/scripts-scriptui-dialogs 2026-11-24 09:13:49 -08:00
BFlat 825cf29a88 Cut tools test registers the app's icons before checking them (#9230)
CI runs each test in its own process, where nothing else has registered them.
2026-11-24 23:29:22 +07:00
Codex 30d701a5b3 Adapt Properties Quick Actions to the refactored panel 2026-11-24 21:53:38 +05:30
ViktorBystrov72 f0a5396e41 Declare the PDF/X-4 identification namespace on the XMP description (#9134) 2026-11-24 20:10:46 +05:00
BFlat bd685fff55 Preferences test: check the title bar note's wording, not the variable name (#9226)
The row's help joins its notes with the setting's own sentence, which names
VECTORCRAFT_TITLEBAR too, so on Linux the check held with the variable unset.
2026-11-24 22:05:18 +07:00
dotCooCoo 71d1600dab Scripts: an error's authored check hashes its name and message without copying them
An error the interpreter throws keeps a hash of its description, and a run compares the error's
current name and message with it to tell whether the text is the script's own. The comparison
copied the whole description first, so a rejected error whose message a script had replaced with
a long string was copied whole at the end of the run. The hash is now fed the strings' code units
a piece at a time along the rope, so nothing is copied, and a change anywhere in the message is
still seen.
2026-11-24 06:12:42 -08:00
jmvergesandClaude Opus 5.5 6467e3d1d5 Merge main (19ebdcab54) into the font width import branch
Main moved the pdf crate to the craft framework (craft::pdf) and added the
marks and output exports next to this branch's page_widths ones: keep all
three, keep cid::replacement crate-visible for page_widths, and read
craft::pdf in page_widths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:56:42 +00:00