Commit Graph
610 Commits
Author SHA1 Message Date
BFlat 6d701bf953 Merge pull request #8982 from dotCooCoo/fix/save-pdf-partial-bleed-write
Save PDF: a settings object set by ui.dialog.set keeps the options it leaves out
2026-11-27 05:12:09 +07:00
BFlat d7982ef857 Merge pull request #9078 from dotCooCoo/fix/paste-keeps-unwritten-cut
Clipboard: Paste keeps a Copy or Cut whose system clipboard write failed
2026-11-26 16:59:28 +07:00
dotCooCoo dcea6b8f3d Merge main into fix/paste-keeps-unwritten-cut 2026-11-25 21:52:50 -08:00
dotCooCoo 0eec4f510f Toolbars: Dock Toolbar and Float Toolbar run again on the dock
window.toolbar.dock and window.toolbar.float were still listed in the
command catalogs, but the move to the framework dock removed their
handlers, so both returned "unknown command".

- window.toolbar.dock docks a toolbar made with New Toolbar as a column
  of the left or right edge's dock, at the column `order` asks for.
  Without `side` it uses the edge it docks at, else the edge of the
  docked panel it left, else the left.
- window.toolbar.float floats it at x, y, or as the dock floats a panel.
- A hidden toolbar that either command shows brings back the groups torn
  off it, and both commands end a Tab hide.
- window.toolbar.list reports that same edge for a floating toolbar
  instead of always "left".
- place_floating moves an open OS window's record with its rect, as
  float_actions does.

Docs: the params text in both catalogs, docs/mcp.md and
docs/control-protocol.md describe dock columns instead of lanes.
2026-11-25 21:46:05 -08:00
BFlat a54d28887c Merge pull request #7718 from dotCooCoo/feat/color-wheel-contrast
Color Wheel: Show Contrast reports the WCAG contrast against the color behind the selection
2026-11-26 08:51:15 +07:00
dotCooCoo 1d6f0340e2 Merge main into feat/color-wheel-contrast
The contrast row, its menu rows and its tests move to the craft UI framework,
as main's Color Wheel panel now uses it:

- The row is a Row with a Swatch named Background (a color well whose value is
  the background's hex value) and Text for the ratio and the AA and AAA
  results, each with the WCAG minimums as its tooltip.
- Show Contrast, Contrast For and Contrast Background are rows of the panel
  menu's items (ui.colorWheel.contrast, contrastFor.<id>,
  contrastBackground.below and contrastBackground.current), after Show
  Opacity. Current Color is gray, and its row answers an error, while the
  active proxy has no solid color.
- The kept background and ratio answer are fields of WheelUi instead of panel
  state. The answer's key also holds whether the Live Paint Bucket paints,
  which changes the proxies' paint without a document revision.
- The row's tests run in the panel's Fixture by accessible name; the drag test
  runs an interaction whose previews set the fill, as the Show Document Colors
  drag test does.
- The settings lists in the params text, docs/mcp.md and the tests take both
  opacity and the contrast keys.
2026-11-25 16:36:08 -08:00
dotCooCoo 2b9999e81f Merge main into fix/save-pdf-partial-bleed-write 2026-11-25 09:29:28 -08:00
dotCooCoo 9cc639d2fc Merge main into fix/save-pdf-partial-bleed-write 2026-11-25 09:29:23 -08:00
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 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 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 <223278896+SofiaAFigueredo@users.noreply.github.com>
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 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 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 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 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
dotCooCoo adc2b873db Width Point Edit: OK and Delete check the points and document they opened on
- OK and Delete on one or several existing points are refused when those
  points changed in any way since the dialog opened (place, widths,
  stroke weight, or pairing as a discontinuous point), or when another
  document is active.
- OK with no width changed checks the selection before it closes.
- An untouched Total Width above 100000 pt no longer blocks OK; a value
  set above 100000 pt is still refused.
- A width set into a field that OK refuses stays there when another
  field is set afterward, and a negative width typed for several points
  is refused at OK instead of becoming 0.
- `ui.widthPointEdit` refuses `index` together with `t`.
- Double-clicking a selected width point passes every selected entry,
  so points at nearly one place are all edited.
2026-11-18 18:01:13 -08:00