Commit Graph
21712 Commits
Author SHA1 Message Date
dotCooCoo 657bc9418e Asset Export: the scale row's Scale, Suffix and Format share the room the Remove button leaves, as production's rows did
The format rows (Scale, Suffix, Format and Remove) laid out over four
Content columns. The Format select is at least a field length wide
whatever room its column offers, and Scale took the room the other
columns leave at their least, so wherever the grid did not stack the
cells, Format and Remove ran past the panel's right edge: at 300 pt,
Remove ended at 481 pt. The Save As Preset row under the table then
laid out in the widened section and ran past the edge too. Export for
Screens draws the same rows.
2026-11-25 00:41:35 -08:00
dotCooCoo 43106385f6 Align and Pathfinder: the panel icons fill their glyph square again
The Align, Distribute, Distribute Spacing, Align To and Pathfinder icons
keep their art 3 units inside a 24-unit view box. The framework draws
every icon in a 16 pt square, so this art spans 12 pt, smaller than the
Lucide icons next to it and smaller than the 15 pt the Align Objects,
Distribute Objects and Pathfinder buttons drew before the framework
port.

The 28 icons now have a 20-unit view box from 2 to 22, the padding the
Lucide icons keep. Their width and height change with it, so strokes
keep their width in pixels. The art itself is unchanged.

A new panel harness method returns a frame's shapes with the images of
its textures, and two tests check that each Align and Pathfinder panel
icon spans at least 20/24 of its square. Both fail without the change
(0.75).
2026-11-25 00:21:01 -08:00
dotCooCoo 2a3db63482 Merge main into fix/followup-8463-preview-test 2026-11-25 00:07:20 -08:00
dotCooCoo c5732dc96b Merge main into fix/quick-pen-shortcut-default 2026-11-25 00:06:55 -08:00
dotCooCoo 6cdd034ed7 Merge main into fix/grid-picker-keeps-entry-model
Document Setup's Grid Colors row now answers through the dialog's color request: an answer equal to the color an entry's box showed leaves a two-color list's entry in its own model.
2026-11-25 00:05:32 -08:00
dotCooCoo 468b434c09 Plug-ins: a JavaScript plug-in's parameters keep their declaration order
Loading a JavaScript plug-in read its JSON into a map that sorts its keys and
wrote it out again before parsing the manifest, so `params` and each command's
`params` reached dialogs in alphabetical order. The manifest is now parsed from
the plug-in's own JSON (`Manifest::parse_text`), with its size still counted
without `script` and `source`, and a `.vcplugin` read from a folder has
`source` added to its own text instead of being written out again.
2026-11-24 23:52:00 -08:00
dotCooCoo ca2af5d94b Tests: the hidden-characters memo test also tries again when the fonts or hyphenation exceptions change during the edit pass
The attempt now records whether the memo inputs still match the settled
pass right after the edit pass, and accepts it only when they match after
both the edit pass and the zoom pass. Before, a change and restore of the
hyphenation exceptions between the two passes cleared the memo, left the
zoom check passing, and failed the assertion that the object not edited
keeps its layout.
2026-11-24 23:51:08 -08:00
dotCooCoo c6b92415f9 i18n: file pickers show file types in the interface language
The save panel and the Tracing Presets Import... picker passed each file
type's English label to the picker. They now name it with its
file-filter row, falling back to the plain row and then to English.
2026-11-24 23:46:51 -08:00
dotCooCoo f9f0659fc4 Merge main into feat/packaging-fold-angle 2026-11-24 23:45:27 -08:00
dotCooCoo 6c6b1328b1 Merge main into fix/dialogs-framework-widgets 2026-11-24 23:38:11 -08:00
dotCooCoo e78c07546e Merge main into fix/profile-mismatch-background-queue 2026-11-24 23:36:54 -08:00
dotCooCoo 9d225ba091 Merge main into feat/plugins-load-on-workers
The Safe Mode choice after a stopped launch moves to main's dialog host and keeps listing every
plug-in that was loading: one name in the sentence, or the list with "Disable Listed Plug-ins and
Continue". Automation requests wait in the queue while plug-ins load, and one past its deadline is
answered as expired. File > Open and opening a file still wait for the plug-ins still loading.
2026-11-24 23:31:07 -08:00
dotCooCoo 34b5706d1f Merge main into feat/eyedropper-hover-highlight 2026-11-24 23:28:44 -08:00
dotCooCoo 1f5a155580 Merge main into fix/test-frames-before-input-once 2026-11-24 23:27:22 -08:00
dotCooCoo b081fd0e0d Live Corners: the Corner Radius fields show a relative radius as a length
A live rectangle or polygon with Relative rounding showed the fraction it stores in its Corner Radius fields, while the Corners pop-up showed the length. The fields now show the length, which object.setLiveShape takes.
2026-11-24 23:23:34 -08:00
dotCooCoo 5f166ebbdd Merge main into fix/canvas-color-settings-rerender 2026-11-24 23:22:09 -08:00
dotCooCoo e85c87ca2c Merge main into feat/transform-polygon-sides-slider
The Sides slider is now a framework Slider beside the Sides field in transform/shape.rs; the framework's gesture handling replaces the hand-kept drag state, the end-of-pass hook and the Escape checks in shortcuts.rs.
2026-11-24 23:19:45 -08:00
.CooCoo 99f7de5262 Direct Selection: Double-Click Adds Anchor Points preference adds an anchor on a segment (#9122) 2026-11-25 14:18:29 +07:00
dotCooCoo ad8c80dba6 Merge main into perf/type-overlays-shared-layout
Show Hidden Characters and Auto Spell Check now share the list of the type in canvas/marks.rs, where main draws both overlays; the tests move to canvas/marks/tests.rs.
2026-11-24 23:16:48 -08:00
dotCooCoo 717b1e1670 Merge main into feat/plugin-api-javascript-runtime 2026-11-24 23:13:32 -08:00
dotCooCoo 93775c8bd7 Panels: a panel the Window menu floats opens at its own size again, as production opened it
A panel shown from the Window menu with no place in the dock floated at
the dock's default float size (192 x 240 pt), which clipped its content:
Asset Export and Image Trace showed only part of their controls.

The space commands float panels into now carries each Window-menu
panel's float size again, whether or not the dock area has drawn: 260 x
360 pt by default, with the larger sizes Properties, Layers, Libraries,
Anchor Inspector and Fold Preview had before. Image Trace opens 420 pt
tall, which shows its controls down to its Advanced section. Floats
dragged out of the dock keep the size they had there.
2026-11-24 23:12:23 -08:00
dotCooCoo cf1712e034 Merge main into fix/i18n-tracing-presets-file-filter 2026-11-24 23:12:06 -08:00
dotCooCoo ca35b94985 Merge main into fix/width-point-edit-target 2026-11-24 23:08:50 -08:00
HassanKhan baeef6db80 GPU start: try the adapters that crashed an earlier start when no other is left
A start ended before its first frame leaves its adapter recorded as
crashed in graphics-start.json, and the next start leaves that adapter
out. A start ended from outside (a --control session terminated early)
looks the same as a crash in the driver, so on a machine with one GPU,
such as an Apple Silicon Mac, the next start had no adapter left and
failed with "no graphics adapter can show the window".

The selector now tries the adapters that crashed an earlier start
again, with a warning in the log, when leaving them out would leave
none. Adapters a restart left out after they failed in this run of the
app stay left out, and with another adapter to try, the one that
crashed is still left out.

Fixes #9183
2026-11-25 12:05:11 +05:00
.CooCoo 8dbe58929e Control bar: Style is a swatch of the linked graphic style, as production's Style chip was (#9254) 2026-11-25 14:04:46 +07:00
dotCooCoo 2721c5701e Merge main into fix/banner-hem-and-grommet-messages-and-saving 2026-11-24 23:03:05 -08:00
dotCooCoo 2de7c7de82 Merge main into fix/ui-port-text-divider-notice 2026-11-24 22:59:44 -08:00
Zaxaerith 10a03396d1 docs(cli): clarify artboard fill for selected artwork 2026-11-25 14:58:16 +08:00
dotCooCoo 73d954fd3c Merge main into feat/opentype-proportional-metrics
Proportional Metrics and the East Asian feature toggles apply typing left unapplied with Real-time Drawing off before they read the text, so the item turns the setting the right way.
2026-11-24 22:56:58 -08:00
dotCooCoo 6ff807f7b1 Merge main into fix/dialogs-framework-widgets 2026-11-24 22:55:45 -08:00
dotCooCoo 3ca2cf7d34 Merge main into feat/plugin-api-document-info 2026-11-24 22:49:15 -08:00
dotCooCoo ccff9efebb Plug-ins: tests fail on a grants read error, check the replaced-file callback ran, and release held loads first
- The grant test accepts only a missing grants file as an empty list; any other read error fails it.
- The same-stamp replacement test asserts that the callback rewrote the file before it checks that
  nothing installed.
- The loader's ordering test binds the job senders after `loads`, so a failing assertion releases
  the held jobs before `loads` waits on them under the manual clock.
2026-11-24 22:46:38 -08:00
dotCooCoo 34abb11d0e Merge main into feat/scripts-execute-menu-command 2026-11-24 22:46:32 -08:00
dotCooCoo 66efae46f2 Scripts: app.executeMenuCommand runs a menu command
app.executeMenuCommand(name) runs the command of a menu item on the
active document. It takes the names selectall, deselectall, group,
ungroup, makeMask, releaseMask, compoundPath, noCompoundPath and
"Fit Artboard to artwork bounds", which fits the active artboard.
Names are matched exactly. Any other name throws an error that names
it, and a name that is not a string throws a TypeError. A menu item
that is not available, with no document open or nothing selected,
does nothing and adds no undo step.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-24 22:45:55 -08:00
dotCooCoo 254bcf4226 Merge main into feat/corners-link-popup 2026-11-24 22:39:31 -08:00
dotCooCoo fdca4a75f5 Live Corners: scrubbing the Properties panel's Corner Radius updates the corners as it moves
The field applies each value of the gesture through an undo scope, as the Corners pop-up's Radius field does, so a scrub is one undo step.
2026-11-24 22:39:25 -08:00
dotCooCoo 6bb47e42bd Merge main into feat/link-info-show-in-folder 2026-11-24 22:33:55 -08:00
dotCooCoo 57190738b1 Merge main into feat/link-info-show-in-folder 2026-11-24 22:33:50 -08:00
dotCooCoo 5038c1e01a Panels: a panel that opens in a window of its own floats there directly instead of docking at the end of the main group first, so the docked group keeps Properties in front, as production did
window.panel and place_floating opened a panel that has no place in the dock at the end of the
main tab group and then floated it out. Opening it made it the group's front tab, and floating
it out left the group's last tab, Libraries, in front instead of Properties.
2026-11-24 22:31:49 -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 6ac3f3a6c4 Layers: a horizontal and a vertical ruler guide's rows show a glyph of their own, a line across or down from a ruler, as production's rows drew a line across or down 2026-11-24 22:25:12 -08:00
dotCooCoo 1693a4f71b Transparency: the mask row renders its thumbnails at the size.thumb.lg token in place of a fixed 48 pt
The object and mask thumbnails sit in a large thumbnail row, whose cells
take their side from size.thumb.lg, but the pictures were requested at a
fixed 48 points. Every built-in size set gives 48 today, so the two only
part when the app's sizes change size.thumb.lg; the pictures were then
rendered smaller or larger than the cells that show them. The request now
reads the token, and a test checks that the picture covers its cell at
both densities and with the token changed.
2026-11-24 22:14:03 -08:00
dotCooCoo 7b88933d73 Tests: the hidden-characters memo test tries its edit and zoom again on a new document until the fonts, which other tests change, stay the same from the settled pass to the zoomed one 2026-11-24 21:46:55 -08:00
dotCooCoo 4ebe9d9bbd Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 21:40:17 -08:00
HassanKhan 1a7cb29bf2 Stroke panel: the cap icons mark the end of the path in one place
The end-of-path line sat at x=16 in Butt and Projecting but at x=12 in
Round, and the stroke bar was as opaque as the line, so the line vanished
where it crossed the bar and the three icons looked alike. The line is now
at x=13 in all three over a lighter (0.55) bar, as the stroke-align icons
draw it, and the caps are larger, so Round and Projecting reach 5 units
past the end instead of 4.

Fixes #9229
2026-11-25 10:38:21 +05:00
dotCooCoo a1886f6957 3D: the light list is a framework Stack, and the light sphere measures as tall as it shows
The light sphere's height follows its width, but it measured with the
width of a band picture, which is its least width when a column measures
it with no room. In a Stack the measuring run then found the light list
shorter than it showed (by 64 pt in the 3D panel test), and "Light
behind the object", the last row, lay outside the Stack and took no
clicks. The sphere now measures with MeasureCx::picture_size, so the
column measures it again at the width it shows at. The light list moves
from ui.vertical into form::stacked: each run edits a copy of the
values, and the copy from the run that is not a measuring run replaces
them.
2026-11-24 21:23:25 -08:00
dotCooCoo 225e810289 Tests: the frame helpers give the runtime its input once per frame, as the apps do, and run the commands a pass fired without a second input, which made every command state of the next frame look changed and asked for a rerun 2026-11-24 20:51:44 -08:00
dotCooCoo 1f1c8ccf8c Merge main into feat/scripts-api-d1a-app-documents 2026-11-24 20:48:43 -08:00
dotCooCoo 2b4e34c7a2 Merge main into feat/corners-link-popup 2026-11-24 20:39:43 -08:00
dotCooCoo cecaf16bae Circle: switching Third Point by Dragging keeps a center placed with From Center 2026-11-24 20:39:34 -08:00