Commit Graph
907 Commits
Author SHA1 Message Date
dotCooCoo 312a8bd792 Regenerate Artboard Color Picker command catalog 2026-11-26 16:14:45 -08:00
BFlat 06390d163b Merge pull request #7632 from dotCooCoo/feat/color-wheel-oklch-sliders-v2
Color Wheel: OKLCH Sliders give exact black and white, describe the document's RGB space and drop a remembered pick after an undo step
2026-11-27 05:18:50 +07:00
BFlat 023843e3a6 Merge pull request #9114 from dotCooCoo/feat/scripts-startup-scripts
Scripts: run startup scripts at launch and before a chosen script
2026-11-27 05:13:16 +07:00
BFlat 8f30d9c47c Merge pull request #8915 from dotCooCoo/fix/native-geometry-accordion-replay
Document native panel geometry and test tab-group reuse
2026-11-27 05:09:48 +07:00
BFlat a431537d95 Merge pull request #8823 from dotCooCoo/feat/retype-installed-fonts
Retype: installed fonts that are not loaded yet are matched too
2026-11-27 05:09:16 +07:00
dotCooCoo bacc27e2f1 Merge main into feat/scripts-startup-scripts 2026-11-26 11:04:04 -08:00
dotCooCoo 3a068f24b8 Merge main into fix/native-geometry-accordion-replay 2026-11-26 10:05:57 -08:00
BFlat 20e2bfbda3 Merge pull request #8872 from dotCooCoo/feat/packaging-fold-angle
Packaging Tools: a crease, partial cut or perforation can fold at its own angle
2026-11-27 00:53:23 +07:00
dotCooCoo 577778693e Merge main into fix/native-geometry-accordion-replay 2026-11-26 09:47:05 -08:00
dotCooCoo e015b20396 Merge main into feat/scripts-startup-scripts 2026-11-26 07:31:10 -08:00
dotCooCoo e5d9376b9d Merge main into feat/curvature-circle-options 2026-11-26 07:08:30 -08:00
dotCooCoo 789675bfeb Merge main into feat/packaging-fold-angle 2026-11-26 06:52:16 -08:00
BFlat b817534934 Merge pull request #9089 from dotCooCoo/fix/corners-relative-per-corner
Corners: a relative radius is a percentage of each corner's own maximum
2026-11-26 16:58:46 +07:00
dotCooCoo 3055ea5757 Merge main into feat/scripts-startup-scripts 2026-11-25 23:39:37 -08:00
dotCooCoo 86bb063a1c Merge main into fix/native-geometry-accordion-replay 2026-11-25 23:05:02 -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
dotCooCoo 3001757362 Merge main into feat/packaging-fold-angle 2026-11-25 21:17:07 -08:00
dotCooCoo 0d5d6d34f3 Merge main into feat/color-wheel-oklch-sliders-v2 2026-11-25 19:27:00 -08:00
dotCooCoo 046a97cb73 Merge main into feat/curvature-circle-options 2026-11-25 19:16:23 -08:00
dotCooCoo 478ed51ace Merge main into feat/retype-installed-fonts 2026-11-25 18:40:00 -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
BFlat f966e8d664 Merge pull request #9104 from dotCooCoo/feat/plugin-api-last-filter
Plug-ins: Apply Last Filter and Last Filter… repeat the last filter plug-in
2026-11-26 08:50:06 +07:00
BFlat daccee9065 Merge pull request #9100 from dotCooCoo/fix/shape-builder-color-pick
Shape Builder: a fill chosen while the tool is active leaves the selection's fills
2026-11-26 08:48:05 +07:00
BFlat 8ee6295e3e Merge pull request #9103 from dotCooCoo/feat/recolor-preset-library
Recolor with Preset: ask whether to limit colors to a swatch library first
2026-11-26 08:46:55 +07:00
BFlat c2b45ce9d1 Merge pull request #9091 from dotCooCoo/fix/issue-9051
Fix #9051: Display Print Size shows 100% at the display's physical size
2026-11-26 08:46:41 +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 bf782369fc Merge main into feat/retype-installed-fonts 2026-11-25 15:23:05 -08:00
dotCooCoo f341cb5b0d Scripts: a chosen script keeps script.run's reply with startup scripts on
With Run Startup Scripts on, ui.runScript and ui.runInstalledScript
return script.run's reply, or its error when the chosen script cannot
start, with the startup run's reply under startup. While a startup
script runs first, the reply is {running: true, queued: true}.
2026-11-25 15:22:31 -08:00
dotCooCoo b19905b054 Merge main into fix/issue-9051 2026-11-25 14:55:35 -08:00
dotCooCoo 5ca10060b3 Merge main into feat/color-wheel-oklch-sliders-v2 2026-11-25 13:58:13 -08:00
dotCooCoo 9e3b3efed0 Merge main into fix/shape-builder-color-pick 2026-11-25 09:45:57 -08:00
dotCooCoo 7e8904f424 Merge main into feat/smart-pen-default-toolbar 2026-11-25 09:28:56 -08:00
dotCooCoo 356f5bec2c Merge main into fix/corners-relative-per-corner 2026-11-25 09:22:39 -08:00
dotCooCoo c71fc0a25b Merge main into feat/recolor-preset-library 2026-11-25 09:11:53 -08:00
dotCooCoo 335ed2cbb0 Merge main into feat/plugin-api-last-filter 2026-11-25 09:03:55 -08:00
dotCooCoo 391ea5dd4b Merge main into feat/curvature-circle-options 2026-11-25 04:30:52 -08:00
dotCooCoo f9f0659fc4 Merge main into feat/packaging-fold-angle 2026-11-24 23:45:27 -08:00
BFlat 461e758fe7 Look: Home, the dock frame and the panels' spacing as production 0.24.1 draws them (#9276)
* Dock: rail_cards is now column_cards in craft-libs

* Dock: pill panel tabs and rounded floating bodies, as production drew them

* Root looks: neutral link labels, hover command highlight, strong choices, accent slider tracks, filled dialog buttons, spaced sections

* Canvas: artboard edges black for the active artboard and grey for the others, as production drew them

* Canvas: smart guide labels in their overlay's colour, as production drew them

* Canvas: bleed in the error red and artboard marks in the grid grey, as production drew them

* Document tabs: production's strip heights, regular and large

* Floating window close test: aim at the title bar above the window's tab strip

* Place the selection widgets over the canvas, so a frame runs its UI once

SelectionWidgets was laid out in the canvas body's flow, which the layout
check found changed in every frame the canvas drew: the frame was discarded
and its whole UI ran a second time. It is placed over the canvas's rect, as
the other canvas controls are.

* Give nine trials the frames their behaviour needs now that a frame runs its UI once

* Give the merge-press and corner-list trials what their behaviour needs now that a frame runs its UI once

A merge the press frame applies changes the layout, so that frame runs again and its second pass already makes
the held press: the check accepts the lent tool once the merge is no longer pending. The picked corner list fades
out on the clock, which the trial now moves past before it checks the list is gone.

* Pin craft-libs at 357f332549af53e1a273c2952c3e9c44157bef72

* Field labels in the normal ink, semibold document tabs, Stroke and Opacity without a colon, a plain Properties Rotate field, as production drew them

* Only the shown pass of the canvas body starts the frame's panes, so a release over a floating window in the frame the pointer reached it drops the art

* Pin craft-libs at 75efd247498d47e41604f418bceb2adaf0e3b329

* A collapsed panel column's icon groups stand apart by a hairline, as production drew them

* Fill and Stroke chips: production's small square wells with their arrow, in the Properties panel and the Control bar

* The dock's columns stand flush and square at production's widths: a 310-point panel column and a 38-point icon column, the panel tabs in the framework's plain look

* The app bar's end shows Discord, a search icon and the workspace switcher, as production 0.24.1 does; tutorials and Arrange Documents stay in the Window menu

* Home: StartScreen's Column layout as production lays it out: the centred welcome title and subtitle, New and Open, the recent files as rows, Learn, the presets as page cards under Quickly start a new file, and Community's links with Join our Discord as the call to action; the Home title is 26-point (typography.display). The recent-files trial finds rows by name and folder. Needs the framework's StartLayout::Column (craft-libs fix/vc-home)

* Properties: the kind line heads the sections under it (QuietHeader::Heads), so the first draws no divider above it, as production's did

* Link labels (Stroke, Opacity:) draw their underline inside the label (LinkLabelUnderline::Inside), under the text as production drew it; it was clipped away

* Push buttons stand 24 points high (size.button), as production's flat buttons; fields stay 26

* Quiet headings (the kind line, Ellipse Properties:) stand a line of text high over their fields (QuietTitleRow::Text), as production's did

* Layers rows: the thumbnail with a tight gap and 14 points of indent per level (ThumbRows::Tight): 26-point rows as production's

* Layers: the Objects search field fills the filter bar up to its Filter button (ObjectsSearch::Fill), as production's did

* Home: production's "New file" and "Open" words, 60 points of page margin above the title and a 36-point Join our Discord (size.page.margin, size.page.action); New Document's preset cards show blank paper on flat cards (PresetCardLook::Page), as production drew them. Needs craft-libs fix/vc-home 9cf00b80e or later

* Control screenshots: frames keep coming until a capture is answered, not only until it is issued; its readback finishes in a later frame, so with nothing else repainting (the Color flyout open) a screenshot waited for the next wake, where production's capture kept painting

* Icon buttons draw 16-point glyphs (size.icon.glyph_md) in their 26-point buttons, as production's did (60% of the button): Align, the Transform flips, More Options

* craft-libs at next 461493afc: the panel spacing options, the menu Copy after Select All and Home's Column page options; pdf-deps follows

* Files dropped on a floating panel window open as before: the dock now names the panel each drop landed on (craft-libs a2967e3cc), which the app does not use

* The dock takes production 0.24.1's frame: block panel tabs on canvas strips with the column bars 14 points high, the tool column the only card with a square canvas strip on top, docks flush against the canvas with framed icon columns and square docked flyouts, the open panel's icon on the control surface; the status bar's rotation and artboard selects are filled

* craft-libs at next 4bed21baa: VectorCraft's dock frame options (block panel tabs, stepped column cards, flush docks, ruled icon groups with production's grip bands, filled status selects); egui follows the framework to b15ffe9bf; pdf-deps follows

* Color Wheel: the opacity row reads the target and color from the rows' pick

#7642's opacity row used the target, color and color settings of the old panel function, which #9256 split into show_rows. It now reads them from the Pick show_rows gets, and leaves the gap to the stack, as the other rows do.
2026-11-25 13:29:00 +07:00
dotCooCoo 7a85e09b26 Merge main into feat/retype-installed-fonts 2026-11-24 15:21:47 -08:00
dotCooCoo ecebe5f1d1 Merge main into feat/color-wheel-opacity 2026-11-24 12:33:59 -08:00
BFlat ca09a61d72 Merge pull request #8880 from dotCooCoo/fix/align-to-selection-anchors-docs
Align: align.toSelection returns "artboard" only for one object with no anchor points selected
2026-11-24 16:01:58 +07:00
BFlat 8b4a57f4e3 Merge pull request #8818 from dotCooCoo/fix/selection-widget-double-click-transform
Live Corners: a Selection tool double-click on a corner widget shows the Transform panel
2026-11-24 16:01:41 +07:00
BFlat 6f37bd839c VectorCraft on the craft UI framework (#8800)
VectorCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (`next`; the framework side is storytold/craft-libs#2809), as PhotoCraft's did. The app keeps its engine, document model, file formats, commands and automation; its windows, panels, bars, dialogs and canvas are now built and driven by the framework: shell, docking and panels, hosted dialogs, keyboard, focus, IME and pointer routing, and theme tokens.

About 264,000 lines of VectorCraft's own egui UI code are removed and about 154,000 added. craft-libs is pinned at bf62d509f (in `next`), the egui fork at f5025284.

Tests that drove the old UI were rewritten against the port where only their premise changed, with their assertions kept. The UI tests still failing at merge, and their follow-ups, are listed in the pull request.
2026-11-24 08:25:24 +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 e2334a2165 Smart Pen: the tool is in the Pen tool's flyout
The Smart Pen Tool joins the Pen group in both shipped toolbars, after
the Quick Pen, and stays in Object › Plug-ins › Smart Pen. The All Tools
drawer lists it once, under Draw, and Edit › Keyboard Shortcuts › Tools
lists it once. It has no default shortcut, and the Pen keeps P. A
toolbar the user already edited keeps its saved layout; Reset Toolbar
adds the tool.

A group torn off the Tools panel's toolbar now shows the tools of the
current layout's group that starts with the same tool, after toolbar
edits, Reset Toolbar, a switch between Basic and Advanced, loading the
preferences and switching workspaces, as groups torn off a toolbar made
with New Toolbar already did. A strip with no such group keeps its
tools.

Part of #8326
2026-11-22 08:16:20 -08:00
dotCooCoo 1592cee7a8 Plug-ins: Apply Last Filter and Last Filter… repeat the last filter plug-in
Object › Plug-ins now starts with Apply Last Filter (plugin.applyLastFilter)
and Last Filter… (plugin.lastFilter). Once a filter plug-in's plugin.run
succeeds (its menu item, its dialog's OK, a shortcut, a request, the last
plugin.run step of a command.batch or of an Action Batch that processed a
file or data set, or a background run once its result is applied), Apply
<name> runs it again on the selection with the same parameters, without
its dialog, as one undo step, and <name>… opens its dialog with those
parameters. A filter's own dialog opens with the parameters it last ran
with in the session. Previews, Cancel, failed runs, a plug-in's own
commands and live effects don't count.

Both items are grayed out, and return an error through automation, with
no document open, before a filter ran, once that filter was removed or
installed again, or when its manifest no longer takes the parameters as
they are. The parameters are kept for the session only, for at most 64
filters.

The help page describes the same pair for filters:
https://help.adobe.com/archive/en_US/illustrator/cs3/illustrator_cs3_help.pdf#page=357
Where the items sit and when they are grayed out are VectorCraft's own
rules.

Docs: docs/plugins.md, docs/mcp.md, docs/target-app-parity.md.
2026-11-22 06:48:36 -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 1cecbb9aee Display Print Size: keep the last density, fits and percentages right
- A fit made while a floating window's display has not answered keeps
  counting from the density the window was last shown at, so Actual
  Size and the zoom field no longer fall back to 96 points to an inch
  meanwhile.
- A view that still fits its floating window keeps fitting it after a
  move to a display of another density: the fit kept for the window
  takes the settled zoom.
- The plausible range of a measured display applies to its pixels per
  inch, before the display scale divides them into points. A
  1920 x 1080 display of 527 x 296 mm at scale 4 now measures about
  23 points to an inch instead of falling back to 96, and Actual Size
  takes any finite, positive point density the host measured.
- View > Set Zoom, Zoom In and Zoom Out, the wheel and the Zoom tool
  clear the zoom a fit gave the view, so a percentage that equals the
  last fit's zoom keeps its percentage at the first reading.
- The Actual Size and preference descriptions say that a size no
  display has also counts 96 points to an inch.
2026-11-22 06:25:08 -08:00
dotCooCoo a1bd1ba906 Shape Builder: a fill chosen while the tool is active leaves the selection's fills
Choosing a fill while the Shape Builder was active (a swatch, the Color
panel, the Fill box or a paint command) ran paint.setFill on every
selected path, so all of them took the color. With Pick Color From set
to Color Swatches the tool merges with the current fill, so the pick is
the color for the next merge.

While the Shape Builder is active, a fill chosen without ids, id or item
now changes only the current fill, with either Pick Color From: with
Color Swatches the next merge fills with it, and with Artwork merges
still take their look from the art. A stroke chosen then still goes to
the selection. Swap Fill and Stroke and Default Fill and Stroke change
only the paint for new art, and Swap gives the current fill the stroke
the Stroke proxy shows. This is VectorCraft's own rule; no default
setting changes.

- painting_tool_of says which tool paints with the chosen fill or
  stroke: the Live Paint Bucket with both, the Shape Builder with the
  fill. Session::tool_paints(stroke) replaces bucket_paints, so the
  paint and gradient commands, previews, the proxies, the Stroke panel
  and the Gradient panel's eyedropper follow it for each kind.
- A new selection does not replace the tool's fill for new art, with
  New Art Has Basic Appearance on or off, and new art is not linked to
  a graphic style whose fill it does not have.
- A cancel puts back a fill previewed for the tool, also after another
  tool was chosen during the drag.
- An Eyedropper pick armed for a stop of the tool's gradient samples
  only into a stop of that gradient, and ends once that stop is gone.
  Choosing another tool drops the stop the pick was armed for, and a
  pick armed while the Eyedropper waits for a Cmd-drag keeps its stop.
- The paint.freeform commands refuse the Shape Builder's fill as they
  refuse the Live Paint Bucket's colors, which lie on no object. For
  the gradient either tool paints with, the Color panel, the Gradient
  panel, the stop popover and swatch drops edit its stops instead of
  points, and the Gradient panel shows its Draw toggle, ramp and stop
  fields in place of the point controls. paint.editGradient keeps the
  given stops of a freeform gradient that has no points yet.
- A gradient command that names no kind edits the proxy in front when
  the tool paints with it, else the kind the selection's active
  Appearance row stands for.
- set_paint lists the commands that painted no object in unpainted.
- Params text and docs/mcp.md describe the rule.

Help (Pick Color From, Color Swatches):
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/draw-shapes/shape-builder-tool-options.html
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=266
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=267
2026-11-22 06:01:44 -08:00
dotCooCoo 050ddcb567 Fix #9051: Display Print Size shows 100% at the display's physical size
With Preferences › General › Display Print Size at 100% Zoom on, 100%
took 96 screen points to an inch on every display, so a ruler held to
the screen measured more or less than the document said on any display
of another density. The desktop app now measures the density of the
display that shows the main window from the physical size the system
reports (CGDisplayScreenSize on macOS, the monitor's raw DPI on
Windows, the RandR output's millimeters on X11, the wl_output geometry
on Wayland), and measures it again when the window moves to another
display, where every document window keeps its zoom percentage so the
art keeps its physical size. Actual Size, the zoom field, the zoom
stops and the tab titles count 100% from that density. Where the
system reports no size, or a size no display has (zero, an aspect
ratio given as the size, or axes that disagree), an inch stays 96
points, as on the web.

Zoom stepping takes the density from the app instead of a
process-wide flag, and the last zoom stop in each direction stays in
the zoom range.
2026-11-22 03:22:21 -08:00