Commit Graph
20179 Commits
Author SHA1 Message Date
BFlat b6fb8efb29 Merge pull request #9350 from dotCooCoo/fix/preset-export-names
Presets: Export… suggests the preset's name as the file name
2026-11-26 08:42:28 +07:00
BFlat dae69e3bb6 Merge pull request #9349 from dotCooCoo/fix/rename-stays-with-its-document
Graphic Styles: a rename left open stays in its document
2026-11-26 08:42:10 +07:00
BFlat 2b519b6939 Merge pull request #9348 from dotCooCoo/fix/distribute-disabled-reason
Align: dimmed Align and Distribute buttons say why they can't run
2026-11-26 08:41:52 +07:00
BFlat e793c192c3 Merge pull request #9347 from dotCooCoo/fix/one-column-draw-mode-state
Tools: the one-column drawing-mode button reads as a plain button
2026-11-26 08:41:36 +07:00
BFlat aaa0caf959 Merge pull request #9344 from dotCooCoo/fix/transform-each-field-names
Transform Each: screen readers tell the Scale and Move fields apart
2026-11-26 08:41:17 +07:00
BFlat b88a8cebf2 Merge pull request #9343 from dotCooCoo/fix/cycle-display-sizes-name
Panels: the Cycle Display Sizes button is named by its label
2026-11-26 08:41:00 +07:00
BFlat d87a914593 Merge pull request #9341 from dotCooCoo/fix/learn-reopen-click
Learn: a click or Enter on the skill or tutorial opened before opens it again
2026-11-26 08:40:43 +07:00
BFlat 98be81c427 Merge pull request #9340 from dotCooCoo/fix/plugin-non-utf8-names-read-gate
Plug-ins: a script's command reads no plug-in folder file whose name isn't valid text
2026-11-26 08:40:21 +07:00
BFlat be3baba7eb Merge pull request #9323 from dotCooCoo/fix/replace-keeps-file-access-scope
File dialogs: a replace confirmation runs under the file access of the request that asked
2026-11-26 08:39:35 +07:00
BFlat b85336f3ea Merge pull request #9275 from dotCooCoo/fix/layers-guide-icons
Layers: horizontal and vertical ruler guide rows show a glyph of their own
2026-11-26 08:39:14 +07:00
BFlat e47a4189ef Merge pull request #9274 from dotCooCoo/fix/transparency-thumb-render-size
Transparency: the mask row renders its thumbnails at the size.thumb.lg token in place of a fixed 48 pt
2026-11-26 08:38:55 +07:00
BFlat 7a69534c22 Merge pull request #9271 from dotCooCoo/fix/light-list-stack
3D: the light list is a framework Stack, and the light sphere measures as tall as it shows
2026-11-26 08:38:30 +07:00
dotCooCoo 643f048a89 Presets: Export… suggests the preset's name as the file name
Export… in the Print Presets, PDF Presets, Transparency Flattener Presets
and Perspective Grid Presets dialogs suggested the document's name
(Untitled.vcprintpresets). It now suggests the selected preset's name with
the format's extension, made safe as a file name the way Export Library…
makes a library's. A built-in preset's file is named without its brackets
([Default] gives Default.vcprintpresets). The four dialogs share one
helper, preset_manager::export, and the web downloads the file under the
same name.
2026-11-25 16:16:42 -08:00
dotCooCoo 910ce79f59 Graphic Styles: a rename left open stays in its document
The panel's style browser used one id for every document, and styles
are keyed by name. A rename field left open in one document moved to
the next document's style of the same name, with the text typed so far,
and Enter renamed that document's style. The browser id now includes
the document's uid, so the open rename field and the scroll position
are kept per document.

The new test types into a style's rename field, switches documents,
types again and presses Enter. Without the change the second
document's style is renamed to "XY".
2026-11-25 15:43:32 -08:00
dotCooCoo 9cfd5e9a01 Align: dimmed Align and Distribute buttons say why they can't run
The Align panel's buttons, and the Object > Align and Object > Distribute
items that run the same commands, are UI commands. Their enabled check
returned only true or false, so a dimmed button was described as "command
`Vertical Distribute Top` is not available right now", in its tooltip and
to screen readers.

They now give the reason of the engine command the button runs: "select at
least two objects" for Distribute with fewer than two objects, "nothing
selected" for Align, "no document open". With the Artboard tool chosen
they say how many artboards Distribute needs ("select at least three
artboards", or two with Align to Artboard).

A dimmed menu item's reason is now shown in the interface language, as
the fallback text already was.
2026-11-25 15:40:08 -08:00
dotCooCoo 523e240ca3 Tools: the one-column drawing-mode button reads as a plain button
In one column the Tools rail shows a single drawing-mode button, named
for the current mode, that cycles the modes. It took the selected look
whenever the mode was not Draw Normal, so a screen reader read "Draw
Normal (Shift+D), toggle button, not pressed" while Draw Normal was the
current mode. The button now has no pressed state: it reads as a button
named for the current mode, and it no longer takes the selected look in
Draw Behind or Draw Inside. In two columns each of the three buttons
still reads pressed when it is the current mode.
2026-11-25 15:26:32 -08:00
dotCooCoo 6c29bf9937 Transform Each: screen readers tell the Scale and Move fields apart
Transform Each and Effect > Distort & Transform > Transform named both
the Scale and the Move slider and number field "Horizontal:" and
"Vertical:", so only the unit in the value told them apart. Each
control's accessible name now starts with its row ("Scale Horizontal:",
"Move Vertical:"), and the visible label describes it, as Split Into
Grid names its Gutter and Total fields. The visible labels are
unchanged.
2026-11-25 15:18:53 -08:00
dotCooCoo 11af59a2b5 Panels: the Cycle Display Sizes button is named by its label
The double-triangle button at the left end of a panel's tab strip ran
window.panel.cycleOptions with no label of its own. No menu item runs
that command, so it has no command definition, and the button took the
command id as its accessible name: screen readers read
"window.panel.cycleOptions" and the button showed no tooltip. The button
now carries the "Cycle Display Sizes" label, which names it and gives it
its tooltip. The string is already in the word catalogs.

A test opens the Stroke panel, reads the access tree and checks that the
button is named "Cycle Display Sizes" and that no button in the window
is named by a command id.
2026-11-25 14:57:29 -08:00
dotCooCoo 9cd83e9342 Learn: a click or Enter on the skill or tutorial opened before opens it again
Follow-up to #8800. The Learn panel's skill and tutorial lists keep their
selection, and a click on the row that is already selected reports
CollectionEvent::Picked rather than a selection change, so after Back a
click on the skill or tutorial opened before did nothing. Enter on that
row reports Activate, which the lists also ignored.

The lists now open the item on Picked and Activate as well as on a
selection change, as every row click did before the port.
2026-11-25 14:28:23 -08:00
dotCooCoo e7bb81d80e Plug-ins: a script's command reads no plug-in folder file whose name isn't valid text
A plug-in folder load checks each file against the automation roots and,
in a command a script runs, the script's read gate. A file whose name
isn't valid text cannot be checked by name, and without automation roots
it loaded unchecked, also in a script's command. A link with such a name,
in a folder the script may read, loaded a module from anywhere.

Such a file is now refused in a script's command, as it already was under
automation roots. Outside both, it still loads.
2026-11-25 14:20:00 -08:00
skylar taylor-barrick 016ead2572 Use the shared nightly launcher template (#9316)
Renders the plain nightly tar's launcher from craft-common-actions' shared template.

Independent check: dylanmtaylor compared all 14 app launcher PRs byte for byte with the template rendered from the registry (https://github.com/storytold/craft-common-actions/pull/367#issuecomment-7172085284); this head was re-checked against craft-common-actions main 88148a5.
2026-11-25 16:17:47 -06:00
dotCooCoo 766c56cf59 Merge main into fix/layers-guide-icons 2026-11-25 13:40:16 -08:00
dotCooCoo db4694f49c Merge main into fix/transparency-thumb-render-size 2026-11-25 13:39:54 -08:00
dotCooCoo 00b2f5b90c Merge main into fix/light-list-stack 2026-11-25 13:39:38 -08:00
dotCooCoo bd929322ea File dialogs: a replace question after a save panel keeps the request's file access
A save that a confined automation request started stores that request's
file-access scope and automation flag. When the save panel answers in a
later frame, the save pump runs its next step under them, so the question
before replacing a file the panel did not ask about, and its OK, stay
under the request's roots instead of the desktop's access.
2026-11-25 13:35:55 -08:00
BFlat 694f66a7bd Look: Home's Learn below the presets, and the title bar's menus, cursor and tab close as production's (#9322)
* Home: Learn after the presets, as one row of skill cards

The presets stand right under New and Open again, as in 0.24.1, and Learn follows them before Community. Learn is a
Column page section whose heading row ends in the Quick skill guide link (learn.skills), over a raised card per
skill: its title over its tutorials as plain links (learn.show), a page link gap apart. The four cards stand in one
row in a full-width column and two by two in a narrower one. The section is about half as tall as before (161
points at 1600x1000, was 333).

* Chrome: menu titles, title bar cursor and tab close button as production's

The menu bar's titles stand as production's egui buttons (MenuTitleLook::Button): 24 high, 4-point
corners, 2 points beside the text, 6 apart, in place of square 26-high rows padded 6. The title
bar and the panel headers keep the arrow, over the menu titles too (MoveBandCursor::Arrow), where
the move band showed its open hand. A document tab's x is a 12-point glyph that brightens under
the pointer with no fill (TabCloseLook::Glyph), in place of a fill as tall as the tab.

Needs craft-libs fix/vc-look10-chrome (MenuTitleLook, MoveBandCursor, TabCloseLook); the pin moves
when it lands on next.

* craft-libs: next b0d422cf0, with the menu title, move band cursor and tab close looks VectorCraft sets
2026-11-26 02:04:33 +07:00
BFlat 3ce5379692 Merge pull request #9011 from Zaxaerith/fix/8850-artboard-color-help
docs(cli): correct artboard color export help (#8850)
2026-11-26 01:43:58 +07:00
BFlat 2bc121e681 Merge pull request #9076 from Hassan1305/docs-8314-roadmap-g11
Docs: ROADMAP Upcoming names G11's remaining bugs (#8314)
2026-11-26 01:43:40 +07:00
BFlat 9cc119ed40 Merge pull request #9279 from Hassan1305/fix-9183-sole-gpu
GPU start: try the adapters that crashed an earlier start when no other is left
2026-11-26 01:43:23 +07:00
BFlat b3fc967d54 Merge pull request #9318 from dotCooCoo/fix/narrow-panel-rows-wrap
Panels: rows wrap in a panel at its narrowest width
2026-11-26 01:43:05 +07:00
BFlat 034e989716 Merge pull request #9317 from dotCooCoo/fix/selection-anchors-by-path
Canvas: the anchor overlay groups selected anchors by path with one lookup per path
2026-11-26 01:42:48 +07:00
dotCooCoo edc0a6da50 Tests: floated panel bodies stay within the requested width
The narrow-panel row tests compared each control with the floating
panel's body but never checked the body itself, so a body wider than
the requested width would let controls past the panel edge pass.
floated() now asserts the body is no wider than the width the float
asked for.
2026-11-25 09:35:53 -08:00
BFlat 5b0a96be26 Merge pull request #9313 from dotCooCoo/fix/issue-4462-svg-units
SVG export: feet, yards, meters, Q and Ha documents keep their printed size
2026-11-26 00:31:42 +07:00
BFlat 5d00bb8fbf Merge pull request #9308 from dotCooCoo/feat/scripts-e4x
Scripts: every script reads E4X and has the XML objects
2026-11-26 00:31:24 +07:00
BFlat 144b3f18cc Merge pull request #9307 from dotCooCoo/fix/style-percent-comma
Fields: Character Style Options refuses 1,000% as it refuses 1,000
2026-11-26 00:31:07 +07:00
BFlat e1dd113588 Merge pull request #9305 from dotCooCoo/fix/glyph-names-read-once
Glyphs: a font's glyph names are read once, so the panel stops scanning the post table for every cell
2026-11-26 00:30:49 +07:00
BFlat e256ac7022 Merge pull request #9141 from dotCooCoo/fix/eps-discard-white-overprint
EPS: white fills and strokes knock out with Discard White Overprint
2026-11-26 00:30:32 +07:00
dotCooCoo 3a0bfba325 File dialogs: a replace confirmation runs under the file access of the request that asked
A file dialog's answer runs its continuation under the file-access
scope and automation flag of the request that opened the dialog. The
questions that follow a request did not keep them, and ran what OK
allows in the unconfined UI frame:

- the Replace question after a save picker names an existing file
  (file_asks::ask_replace);
- the question whether a save or export may replace the files it
  writes beside the one picked (confirm::ask_replace_files), also when
  a Background Save or Export asks it after the request has ended;
- a confirmation whose OK runs a command (confirm::ask), such as the
  question before a save loses data.

A save, export or open started by a request confined to its automation
roots could then reach files outside those roots once the person
answered OK, and it no longer ran as automation. Each question now
captures ScopeHandle::capture() and automation_asked() when it is
asked, and its OK runs under them, as a picker's answer does. A
background save or export captures them before it leaves the request.
2026-11-25 09:15:23 -08:00
dotCooCoo f49734f5ec Docs: SVG round trips keep mm, cm, in and pc; other units keep their printed size 2026-11-25 08:57:54 -08:00
BFlat 08425c9610 Merge pull request #9310 from dotCooCoo/fix/js-spread-tests-follow-iterators
JavaScript: spread tests follow the iterator protocol
2026-11-25 23:27:57 +07:00
BFlat e4347f0d6f Look: production's breathing room across VectorCraft (type size, menus, dialogs, Home, panels) and main's lib test fixes (#9292)
* Theme: type at the size production draws it. Production set Inter at 92% of its nominal size, so its 13-point body, 12.5-point labels and 11.5-point captions read at 12, 11.5 and 10.5 points; SIZES took the nominal sizes, which drew every text about 8% larger than production on the same rows. Body and strong body 12, labels 11.5, captions 10.5, line heights kept. Dialog buttons at least 72 points wide, as production's.

* Theme: menus and dialogs as production spaces them. 29-point menu rows (production's 24-point rows 5 points apart), dialogs 22 points inside their edge (production's dialog margin) and 28-point dialog buttons. Needs a craft-libs rev with size.row.menu, size.dialog.button_height and space.pad.dialog (fix/vc-look9-metrics): on an older rev SIZES does not parse. Land it after that rev move.

* Home: production's rhythm through the framework's page sizes: 9 from title to subtitle, 27 to New and Open, which stand 28 high with 16 points beside their labels and 14 apart, 33 between sections, 15 under a heading, the community links in 24-point rows 5 apart and in the link colour alone (LinkLook::Plain on Home only); Learn's skills a heading gap apart, each title muted over its tutorials, which stand as tall as New and Open, as production's secondary buttons did

* Swatches: thumbnails at production's sizes and the footer split as production

The thumbnail views give the browser zooms of 1/4, 1/3 and 2/3 on the large
thumbnail: 12, 16 and 32 point tiles, production's 11, 15.5 and 30. The
library panels' saved view follows the new zooms. Swatch Libraries, Show
Swatch Kinds and the edit action stand at the footer's start edge; New Color
Group, New Swatch and Delete at its end edge.

* Color Guide: the footer split as production

Limit to Library stands at the start edge; Edit or Apply Colors, Save
selected colors and Save color group at the end edge, in that order.

* Graphic Styles: 40-point tiles in Thumbnail View

Thumbnail View sets its own zoom, as the list views do, so its tiles are
production's 40 points and no longer keep a list view's zoom.

* Align panel: the reference app's groups and rules: the align and distribute buttons in groups a section gap apart, a rule between Align Objects and Distribute Objects, and Distribute Spacing and Align To on one line with a rule between them

* Transform panel: a rule over the shape properties and over the options, as the reference app had

* Info panel: the two columns of numbers are equal halves of the panel, as the reference app had them

* Layers panel: the footer's layer count is a text unit of the footer row in the text ink, as the reference app showed it

* Libraries panel: the no-library notice shows the library icon over its title, as the reference app did

* craft-libs: next 5442cfb97, with the page rhythm tokens, LinkLook, the menu row height and the dialog padding and button height the look commits set

* Docking test: the report names the panel that has the keys after a click in its search field. A press on a dock tab now leaves the keys where they were (craft-libs TabStrip::keeps_focus), so the tab click alone no longer focuses the panel; the search lookup is a harness helper both tests use

* craft-libs: next 6fcf61c81, a document window raised as Presentation Mode ends comes to the front

* Canvas drops: a canvas takes no drop where a floating panel's OS window lies over it

The canvas's drop catcher accepted art carried off its own canvas wherever
the pointer was over the canvas, including where a floating panel's OS window
lies over it. The main window's pass runs first, so the canvas took the drop
and resumed the move, and the panel under the pointer got nothing. Every
target of the catcher now refuses a point that panel_docking::os_window_at
reports covered, the same rule the Selection tools' carry uses.

It used to work by accident: the carry's covered test flickered every other
frame, the move dispatched a drag in those frames, and the changed revision
made the canvas refuse the carried art until the release.

* Safe Mode: the choice about a stopped plug-in opens on the host at once

The choice was put on the host's startup queue, which the host drains
only at the start of its next pass. On main the first frame happened to
run a second pass (layout memory asked for a rerun), so the choice was
open by the end of the launch frame; the framework now settles that
frame in one pass, and the choice stayed queued until the frame after,
where an agent's ui.dialog.* found no hosted dialog open. The choice is
only asked for on an empty host, so opening it directly is what the
queue would do one pass later.

* Image Trace sampler test: a step runs until the press lifecycle reported its events

run_ui stopped stepping once egui had seen every pointer event of the
step. The press lifecycle reports one phase a pass, so a pass that
brings a release and the next press (two clicks in one frame) reports
the press's Down one pass later and holds its release for the pass after
that, asking for a repaint. The step ended before that pass, and the
second click of review_597048_two_ordinary_clicks_in_one_frame_survive_
sampler_correction never reached the tool, so the group did not isolate.

It passed before by accident: with craft-libs a4b6d3b6ca every other
frame ran a second pass, and the held release landed in it. With
6fcf61c81 each of these frames runs one pass. The step now also counts
the phases owed and runs empty frames until the passes have caught up.

* Shapes add-on: the helper that maps a shape tool to its icon is icon_for_shape, so the icon test no longer reads its tool ids ("polygon", "no-such-tool") as icon ids

* Native panel window test: drop the art on the first graphic style's tile

The test dropped the art 60 x 120 points into the Graphic Styles window. Since
Thumbnail View's tiles are 40 points (df940cff4e) the tile row ends at 116
points, so that point lies in the empty room below the tiles, which takes no
drop, and the panel made no style. The test now finds the first style's tile
by its name in the window's access tree and drops the art there. The test
host keeps each window's named access nodes for that.
2026-11-25 23:23:47 +07:00
dotCooCoo 849bf0888c Canvas: the anchor overlay groups selected anchors by path with one lookup per path
canvas::selection::anchors added every selected path but the first to the
overlay's PathSelection with PathSelection::also, which searches the list
it is building for the same path. With n selected paths that is about n^2/2
key comparisons per rebuild of the marks.

The anchors are now grouped by path with a hash map (by_key) and the
result is assigned to `others` once. A path listed twice keeps its anchors
together where it first appears, as `also` did.

With 5,000 selected rectangles and Properties open (release test build,
Linux x86_64), an idle frame went from 64.1 ms to 61.0 ms (mean of two runs).

Test grouping_selected_anchors_by_path_compares_each_path_a_bounded_number_of_times
counts the key comparisons for 2,001 entries; a per-entry search makes
1,999,197.
2026-11-25 08:06:56 -08:00
dotCooCoo 2b075e5a9a Panels: rows wrap in a panel at its narrowest width
At the narrowest panel width (220 pt), rows of side-by-side controls ran
past the panel's edge in Stroke (the Profile list and the two flip
buttons), Attributes (Fill Rule, Image Map with Browser, and the URL field
after them), Variables (the footer's buttons), Properties (the Align
buttons and More Align options), Magic Wand (Tolerance, in French) and
Document Info (a label and its value, in German). These rows now wrap
onto a new line when the panel is too narrow for them, as the Arrowheads
row already does. A wider panel keeps each row on one line.

The tests float each panel at the narrowest width in the whole window
and check that the named controls stay inside it, and that the Stroke
panel's Profile row stays on one line at 360 pt.
2026-11-25 07:49:18 -08:00
dotCooCoo 2ffccc3e90 SVG export: feet, yards, meters, Q and Ha documents keep their printed size
Since #8610, a document in millimeters, centimeters, inches or picas is
exported with that unit on the root width and height. A document in
feet, feet and inches, yards, meters, Q or Ha still got unitless point
values, which SVG readers take as CSS pixels at 96 per inch, so the art
opened at 75% of its size. These units have no SVG unit identifier, so
the export now writes feet and yards in inches, meters in centimeters,
and Q and Ha in millimeters. The viewBox stays in points, and
VectorCraft reads the file back at the same size.
2026-11-25 06:07:34 -08:00
BFlat 2a5dbc479f Merge pull request #9272 from dotCooCoo/fix/test-frames-before-input-once
Tests: the frame helpers give the runtime its input once per frame
2026-11-25 19:56:15 +07:00
BFlat 9ddc6b64e0 Merge pull request #8906 from dotCooCoo/feat/eyedropper-hover-highlight
Eyedropper: Object Highlighting outlines the object a click would act on
2026-11-25 19:56:02 +07:00
BFlat 5f875f9463 Merge pull request #8896 from dotCooCoo/fix/canvas-color-settings-rerender
Canvas: Color Settings and a reloaded profile render the art again through the new conversion
2026-11-25 19:55:49 +07:00
BFlat e9bca9e5f1 Merge pull request #8888 from dotCooCoo/perf/type-overlays-shared-layout
Type: Show Hidden Characters and Auto Spell Check list the type once per revision
2026-11-25 19:55:36 +07:00
BFlat d0b332dc71 Merge pull request #9282 from dotCooCoo/fix/floating-panels-open-at-their-size
Panels: a panel the Window menu floats opens at its own size again
2026-11-25 19:33:59 +07:00
BFlat e351870b58 Merge pull request #9281 from dotCooCoo/fix/float-panel-keeps-docked-tab
Panels: a panel that opens in a window of its own leaves the docked group's front tab as it was
2026-11-25 19:33:40 +07:00