Commit Graph
670 Commits
Author SHA1 Message Date
dotCooCoo c71fc0a25b Merge main into feat/recolor-preset-library 2026-11-25 09:11:53 -08:00
dotCooCoo ca35b94985 Merge main into fix/width-point-edit-target 2026-11-24 23:08:50 -08:00
BFlat 5158ad606c Merge pull request #9047 from dotCooCoo/fix/ctrl-lends-selection-tool
Selection: Cmd/Ctrl lends Direct Selection until it is released
2026-11-25 11:31:03 +07: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
dotCooCoo bfae97f9a5 Toolbars: Rename Button… gives a command button a label of its own
A command button on a toolbar made with New Toolbar showed its
command's label only. Its context menu now has Rename Button…, which
opens a dialog with the button's label; OK gives the button the label
typed, and an empty label gives it back its command's label.

- The label loses the spaces at its ends and has at most 64
  characters. Control characters and characters that change the
  direction of text show as \u{…} escapes on the button.
- The hover text still shows the command's name and shortcut. A
  screen reader says the label and then the command's name, or only
  the label when it is the command's label or name.
- Labels are saved with the toolbar (`labels`, left out when empty,
  so older layouts load unchanged), and Manage Toolbars' copy keeps
  them. Remove from Toolbar and `toolbar.reset` drop a button's label
  with it, and a move keeps it.
- `toolbar.renameCommand {command, toolbar, label?}` sets the label
  (without `label` it opens the dialog), `toolbar.addCommand` takes an
  optional `label`, and `window.toolbar.list` reports `labels`. A
  longer label, a label that is not text or a button the toolbar does
  not have is an error and changes nothing.

Rename Button… and its rules are VectorCraft's own, and so is the
64-character limit.

Docs: docs/control-protocol.md, docs/mcp.md, docs/target-app-parity.md.
2026-11-22 15:56:31 -08:00
dotCooCoo 23b6184c5b Recolor with Preset: reject a color group
ui.recolorDialog with preset: true and a group opened the preset dialog
and dropped the group, so OK recolored the art without rewriting the
group. That call is now an error. The params text and
docs/control-protocol.md say so.
2026-11-22 11:31:42 -08:00
dotCooCoo add7c0f48b Toolbars: a toolbar made with New Toolbar holds menu command buttons
A toolbar made with Window > Toolbars > New Toolbar held tools only. Its
Add Tool... menu now ends in an Add Command submenu that searches every
Command Palette result other than a tool (menu commands, plug-in
commands, effects and panels); a pick adds a button after the tools, and
Remove Command in the same menu lists the buttons by their full names
and takes one off.

- A button shows its command's label without the ellipsis, on up to two
  lines, and its full name and shortcut on hover. A click runs what the
  command's menu item runs, so a command whose item ends in an ellipsis
  opens its dialog; while the item is dimmed, the button is dimmed and a
  click runs nothing and the status line says why.
- Each command is asked whether it can run once per app state, at most
  12 in a frame, and again on a click or a key press.
- The button's context menu has Move Up, Move Down and Remove from
  Toolbar.
- The buttons are saved with the toolbar (`commands`, left out when
  empty, so older layouts load unchanged), and Manage Toolbars' copy keeps
  them. A command that is gone, such as an uninstalled plug-in's, keeps
  its button, dimmed and labeled with its id, until it comes back or is
  removed.
- `toolbar.addCommand {command, toolbar, at?}` adds or moves a button,
  `toolbar.removeCommand {command, toolbar}` takes one off, and
  `window.toolbar.list` reports `commands`. `toolbar.reset` with
  `toolbar` clears them along with the tools. A UI command that fails
  without params, such as `toolbar.addTool`, is not listed and cannot be
  added.

Not done: dragging a menu item or a Command Palette result onto a
toolbar, an Add to Toolbar item in the palette, dragging command buttons
to reorder or remove them, and command icons. Command buttons are
VectorCraft's own.

Docs: docs/control-protocol.md, docs/mcp.md, docs/target-app-parity.md.
2026-11-22 08:36:06 -08:00
dotCooCoo f7b7ca5f86 Recolor with Preset: ask whether to limit colors to a swatch library first
Edit > Edit Colors > Recolor with Preset (1, 2 and 3 Color Job, Color
Library) now opens a Recolor with Preset dialog with a Limit to Library
menu (None, Document Swatches or a library) before Recolor Artwork
opens; OK opens Recolor Artwork with the preset's colors and that
library, and Cancel opens nothing. The menu items run
ui.recolorDialog {preset: true}.

A 1 Color Job limited to the document's swatches, with a spot or global
ink picked for its row, gives gray art tints of that ink linked to its
swatch, so editing the swatch recolors the art.

Opening either dialog over another dialog now ends that dialog as
Cancel does, so a Recolor Artwork preview is rolled back.
2026-11-22 06:47:42 -08:00
dotCooCoo 3859c084d0 Clipboard: Paste keeps a Copy or Cut whose system clipboard write failed
When another app held the system clipboard open or refused the write,
Cut removed the art and kept it in the internal clipboard, but every
Paste command then read the older contents that the other app had left
on the system clipboard, and pasted those contents instead of the cut
art. A failed Copy had the same fault.

A failed write is now recorded whether or not the copied formats have
text. Until another app copies something, every Paste command takes
the internal clipboard, and a paste into type or a text field takes
the copy's text, or nothing when the formats have no text. On macOS
the clipboard service now reports the pasteboard's change count, so a
later copy is noticed whatever the clipboard holds. Linux and the BSDs
have no change count: there a later copy is noticed only when it
changes the clipboard's text, so a failed write is kept only while the
clipboard held text at the failure.

The new tests run a failed Copy or Cut through the six Paste commands
and a paste into type, with the clipboard locked or the write refused,
with and without a change count, with On Copy: Include SVG Code off so
that the formats have no text, and over a picture another app copied.
2026-11-21 23:44:34 -08:00
dotCooCoo 555b619228 Selection: Cmd Select Behind works on grouped art and line art
A Cmd press with the Selection tool now selects behind on a group that
holds a selected member, as it does on a selected object, so repeated
Cmd-clicks on grouped art reach the object behind the group. A path's
segments no longer keep the press for Direct Selection, so a Cmd-click
on a selected stroke-only path selects behind it. Select Behind needs
another object under the pointer: on a lone object the press is lent.
The bounding box's handles and rotate zones also lend the press.

- A double-click that follows a Cmd-click selecting behind keeps what
  that click selected, without isolating or editing, also when the
  press and the double-click come in one frame. After an edit or a
  selection change, or after a press that drags or is released away
  from where it began, it is an ordinary double-click.
- Whether a press selects behind is kept for the pointer's position
  while the document, the selection, the live inputs and the hit-test
  settings stay as they are, so the cursor, the canvas marks and the
  press do not walk the document again. A layer or group effect that
  draws art widens the area checked; raster effects and color
  adjustments do not.
- The selected blends' spines are built once per check.
- The status bar and the help bar name the tool a press at the pointer
  takes, which is the Selection tool where the press selects behind,
  and they are drawn again when it changes. The canvas drops a hover's
  decision once the tool, the selection or a preference it depends on
  changes.

Docs: docs/mcp.md (pointer_gesture, and Cmd+Alt with Direct
Selection), docs/control-protocol.md, docs/ui-parity.md,
docs/target-app-parity.md.
2026-11-21 18:34:20 -08:00
dotCooCooandSofiaAFigueredo dcff4edc3d Selection: Cmd/Ctrl lends Direct Selection until it is released
With the Selection tool chosen, holding Cmd (Ctrl on Windows and Linux)
now lends Direct Selection, or Group Selection when that was chosen
last, for each press; the Selection tool is back on the release. With
Group Selection chosen, Cmd lends the Selection tool, as it already did
with Direct Selection. Selection & Anchor Display > Command Click to
Select Objects Behind keeps a Cmd press on a selected object, away from
its anchors, handles, mesh points and spine, for selecting the object
behind it. A wide stroke's painted area counts as on the object there.

- The double-click or triple-click after Cmd-clicks goes to the tool
  the clicks went to.
- Cmd pressed once a drag is under way lends nothing, and the pointer
  stays the active tool's.
- While Cmd is held, the status bar's Current Tool and the help bar
  name the lent tool, and the canvas shows the lent tool's marks and
  widgets (blend, Shaper, mirror, trace divider and repeat handles) for
  the pointer's position in the same frame.
- The help bar has hints for Group Selection.

The helper that finds a selected object's editable parts under the
pointer follows the one in pull request 6597 by SofiaAFigueredo.

Docs: docs/ui-parity.md, docs/control-protocol.md (ui.pointer).

Co-authored-by: SofiaAFigueredo <[email protected]>
2026-11-21 11:55:41 -08:00
dotCooCoo a49d4f2036 Save PDF: a settings object set after a null one keeps the preset's options
docs/control-protocol.md said every settings value that isn't an object
is an error. A null is set as it is, and the save takes that section from
the preset; the docs now say so.

A settings object set after that section was null took the options it
leaves out from the default settings, so setting only marks.weight turned
off the preset's trim marks. They now come from Save PDF's preset, as the
save takes them. The test covers both.
2026-11-21 00:58:15 -08:00
dotCooCoo 5e30728f4d Save PDF: a settings object set by ui.dialog.set keeps the options it leaves out
`ui.dialog.set` replaced a Save PDF settings object (`bleed`, `marks`,
`compression` and the others) with the value given. Options left out then
showed the default settings in the dialog, while Save PDF took them from
the chosen preset. With the bleed, the link copied the default top value
to the other sides while the file kept the preset's top: from a preset
with `[3, 5, 3, 3]`, `{"useDocument": false}` followed by linking wrote
`[3, 0, 0, 0]`.

- A settings object set there now sets only the options it holds; the
  ones it leaves out keep the dialog's values. A null option is still
  set as given.
- A value that is not an object is refused, and the request leaves the
  dialog as it was.
- A test sends a request that sets `bleed` and then an invalid
  `__bleedLinked` through the control handler and checks the dialog is
  unchanged.
2026-11-21 00:05:06 -08:00
dotCooCoo 8c738353e5 Width Point Edit: OK and Delete act only on the stroke and the paired points it opened on
- OK and Delete on several width points are refused when a selected
  point became, or stopped being, one half of a discontinuous point
  since the dialog opened, for example after a point was added at its
  place. Before, Delete removed only the selected half and left the
  new one, and OK edited only the selected half.
- OK and Delete are refused when `ui.dialog.set` changed `id`,
  `index`, `outIndex` or `indices` after the dialog opened. Before, a
  changed `id` sent the edit or the removal to another stroke whose
  width points matched.
2026-11-20 16:50:13 -08:00
dotCooCoo 673124e8f5 Merge feat/color-wheel-contrast into feat/color-wheel-contrast-lines 2026-11-20 14:21:50 -08:00
dotCooCoo 054d183842 Live Corners: pick any corner widget with Direct Selection
Part of #1232. With Direct Selection and some corners picked, the widgets
of the other corners used to hide, so a Shift-click could remove a picked
corner but not add another one. Now every eligible widget shows: a
picked corner's widget has a dot at its center and the others are
hollow.

- A click on a widget that is not picked picks its corner alone. A click
  on a picked widget keeps the picks, so Shift-clicking several corners
  and then double-clicking one of them opens Corners for all of them. A
  Shift-click adds or removes a corner on any selected path and keeps
  the other picks; on a path selected whole beside a path with picked
  corners it removes that corner (select.anchorsMany, mode toggle).
  While every corner of every path is picked, a click or Shift-click
  still picks that corner alone, as #6106 made it.
- A drag or Alt-click on a widget that is not picked edits its corner
  together with the picked ones, as one undo step, and does not pick it.
  A drag on a picked widget edits the picked corners alone.
- Over a widget that is not picked, the end of a selected anchor's
  direction handle, or an anchor at least as near to the pointer as
  the widget's center, takes the press, the cursor and the
  double-click.
  Hollow widgets are drawn below the anchors and handles.
- A Shift-click on a rounded corner picked by one of its two anchors
  removes the corner instead of swapping that anchor for the other.
- The Selection tool and the shape tools still show and edit the picked
  corners' widgets alone, drawn as before. The angle, side length and
  Hide Corner Widget rules are unchanged.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md,
docs/ui-parity.md.
2026-11-20 00:27:08 -08:00
dotCooCoo e72b5f9d10 Merge main into feat/color-wheel-hex-alpha-css 2026-11-19 16:58:56 -08:00
dotCooCoo 4aa133a285 Merge main into feat/color-wheel-contrast 2026-11-19 16:36:02 -08:00
dotCooCoo c55515ed41 Merge main into feat/color-wheel-opacity 2026-11-19 15:29:06 -08:00
bflatastic 864ef2f200 Merge main into #8763
# Conflicts:
#	docs/target-app-parity.md
2026-11-20 05:45:14 +07:00
BFlat 684b1bf48d Merge pull request #7641 from dotCooCoo/feat/color-wheel-document-colors
Color Wheel: Show Document Colors lists the colors the art uses
2026-11-20 05:32:27 +07:00
BFlat d2cecc63df Merge pull request #8754 from storytold/train/carry8729
HP-GL Options: OK writes nothing after another document became active (#8729)
2026-11-20 05:25:21 +07:00
dotCooCoo 1bd23c0be7 Merge main into feat/color-wheel-hex-alpha-css 2026-11-19 13:50:17 -08:00
dotCooCoo b3a4ec795a Merge main into feat/color-wheel-contrast 2026-11-19 13:24:43 -08:00
dotCooCoo e690eecb81 Merge main into feat/color-wheel-document-colors 2026-11-19 13:06:47 -08:00
dotCooCoo cd91729d9d Merge main into feat/color-wheel-hex-alpha-css 2026-11-19 11:40:32 -08:00
dotCooCoo 5d489b511a Merge main into feat/color-wheel-contrast 2026-11-19 11:17:08 -08:00
dotCooCoo 1dd87b4799 Merge main into feat/color-wheel-gamut 2026-11-19 11:10:43 -08:00
dotCooCoo eebd3960be Merge main into feat/color-wheel-document-colors 2026-11-19 10:36:07 -08:00
dotCooCoo b423ce5855 Quick Pen: on-canvas toolbar with its actions, Flip Arc and More menu
Selecting the Quick Pen tool shows a toolbar on the canvas. Straight
Line, Continuous Arc and Sharp Corner Arc set the tool's action, Flip
Arc flips the last sharp-corner arc as C does, and More Options has
Hide Toolbar, Pin Toolbar Position and Reset Toolbar Position. The
handle at its left end drags it.

While a path is being drawn, the toolbar sits beside the path's last
point, 24 screen points off it on the side the path heads toward, or on
the other side where that side runs off the canvas. With no path being
drawn, it sits at the bottom center of the canvas. A drag's offset
applies in the kind of place it was made in (beside the drawing or
resting), and not where it would cover the path's last point. Pinned,
it stays at its place in the canvas window. It hides while a press
drags on the canvas, and its controls wrap in a canvas pane narrower
than the toolbar. Hide Toolbar hides it until the tool is selected
again; Window › Quick Pen Toolbar also shows or hides it.

- Tool::drawing_end and Session::tool_drawing_end give the point the
  path goes on from and the direction it arrives in.
- New desktop commands: window.quickPenToolbar, window.quickPenToolbar.pin,
  window.quickPenToolbar.reset and tool.quickPen.flipArc; ui.inspect
  reports quickPenToolbar.
- Labels in every catalog.

Docs: docs/mcp.md, docs/control-protocol.md, ROADMAP, docs/ui-parity.md,
docs/target-app-parity.md. Part of #2660.
2026-11-19 10:04:07 -08:00
bflatastic eee6f40a92 Merge remote-tracking branch 'origin/main' into fix/8044 2026-11-19 23:39:16 +07:00
dotCooCoo 04fbba581e Merge main into feat/color-wheel-opacity 2026-11-19 08:00:41 -08:00
dotCooCoo 67879a24a5 Merge main into feat/color-wheel-gamut 2026-11-19 07:57:28 -08:00
dotCooCoo 9f95dc70dc HP-GL Options: OK writes nothing after another document became active
HP-GL Options stored no document, so OK after `window.nextDocument` or
`file.new` exported the newly active document to the path chosen for
the first one. The dialog now keeps the uid of the document it was
opened for, and OK closes it and writes nothing when another document
is active, as Delete Brush's dialog does.
2026-11-19 07:49:59 -08:00
dotCooCoo 36ee552867 Merge main into feat/color-wheel-hex-alpha-css 2026-11-19 07:03:07 -08:00
dotCooCoo d056974654 Merge main into feat/color-wheel-contrast 2026-11-19 06:46:07 -08:00
dotCooCoo c5891dbb06 Merge main into feat/color-wheel-document-colors 2026-11-19 06:11:21 -08:00
dotCooCoo 30d1cf35c4 Merge main into feat/color-wheel-opacity
main added Show Harmony and Harmony Rule to the Color Wheel settings and
Live Paint routing to paint.setFill and paint.setStroke. The resolution
keeps both: ui.colorWheel takes and returns view, channel, harmony,
harmonyRule, opacity and vision, and the paint params text describes the
Live Paint routing and the opacity param together. The paint.proxies text
and the catalog test's doc comment name paint.setStroke {opacity} for the
stroke opacity. Indonesian, now a complete-message language, has rows for
the opacity errors.
2026-11-19 05:31:23 -08:00
dotCooCoo 1c841c481e Merge main into feat/color-wheel-contrast 2026-11-19 05:22:26 -08:00
dotCooCoo 50b039cd10 Merge main into feat/color-wheel-hsl-sliders 2026-11-19 05:03:21 -08:00
dotCooCoo 9fb331f75b Merge main into feat/recolor-edit-base-color-menus 2026-11-19 04:57:32 -08:00
dotCooCoo d26580f002 Merge main into feat/color-wheel-gamut 2026-11-19 04:54:44 -08:00
BFlat 277dd40567 Merge pull request #8520 from dotCooCoo/feat/width-point-edit-all-selected
Width Point Edit: Side 1 and Side 2 apply to every selected width point
2026-11-19 15:00:49 +07:00
BFlat 2988a7ed53 Merge pull request #8492 from dotCooCoo/feat/save-pdf-custom-flattener
Save PDF: Custom… beside Flattener preset sets the flattener options the save uses
2026-11-19 14:59:41 +07:00
BFlat e78c20a543 Merge pull request #8456 from dotCooCoo/feat/swatches-color-group-options
Swatches: Color Group Options renames the selected color group
2026-11-19 14:58:45 +07:00
dotCooCoo 9b6f548d2d Merge main into feat/color-wheel-gamut 2026-11-18 23:52:39 -08:00
BFlat 5d7613d68b Merge pull request #8656 from storytold/train/carry6295
Edit Original: choose a raster editor through the native picker (#6295)
2026-11-19 14:51:53 +07:00
BFlat 04bd8d417c Merge pull request #7629 from dotCooCoo/feat/color-wheel-harmony
Color Wheel: the wheel shows the colors of a harmony rule
2026-11-19 14:51:03 +07:00
bflatastic c528513911 Merge main into #6295
# Conflicts:
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 14:50:17 +07:00
dotCooCoo 9b0fc2e249 HP-GL Options: check and list pens from what the export writes
- Export Selection to HP-GL checks the selection and starts Pen Table
  from its pens, as the export writes it, and `exportSelection` is no
  longer remembered for the next whole-document export.
- Pen Table with options or an artboard choice the export refuses keeps
  One Pen per Color and shows the error, instead of starting from one
  black pen that corrected options would keep. `automatic_pens` returns
  that error.
- `automatic_pens` refuses `rect`, as `check` and the export do.
- A save panel shown in line that is canceled keeps the dialog open,
  and a canceled save panel keeps the options remembered before.
2026-11-18 18:24:51 -08:00