Commit Graph
23685 Commits
Author SHA1 Message Date
dotCooCoo 4ce921dd1b Export for Screens: the items sit in a framed view, and checked items show selected
The Artboards and Assets panes drew their list and grid with no frame and
only as tall as their items, so with one artboard the view buttons, Clear
Selection and Prefix sat right under the thumbnail with empty space below.
The views were also shown without a selection, and the grid draws a tile's
check from the tile's selection, so a checked artboard had no outline and
its check box drew empty.

- The list and the grid sit on a sunken surface with control padding, and
  keep their height (9 rows, 4 tiles) when fewer items are shown.
- The checked items are bound as the view's selection, so they draw the
  selection outline and a checked box. The lead and anchor are kept per tab
  from pass to pass; the checks still decide which items are exported.
2026-11-29 00:59:38 -08:00
dotCooCoo b0b10c6109 Panels: tests compare the menu rows' flags now that rows are named
Four tests compared a panel menu row's whole state with one that had no
name, and failed once the rows were named: the Symbols view rows, the
Paragraph composer rows, the Links panel's Select rows and OpenType's
Reset row. They now compare the enabled and checked flags, or the state
with its name. The Links test also checks each Select row's Shift
alternate. Two lines in Align and CSS Properties are split to fit the
150-column width.
2026-11-29 00:46:50 -08:00
dotCooCoo 4b7ac69692 Scripts: fix path handles after main's revert count and review findings on path edits
PathItem handles carry the document's revert count, as page item
handles on main do, so path members find their path again.

setEntirePath and the path point setters throw a RangeError for a point
off the canvas. Opening a path whose closing segment is selected keeps
the edit. pathItems.add() leaves new art's paint as it was with New Art
Has Basic Appearance off. addDocument reports settings the built-in
preset refuses. appearance.setNewArt refuses a swatch that is not a
name. Writing one path's points looks only at that path afterwards.
2026-11-29 00:42:20 -08:00
dotCooCoo b0f821f2db Graph Type: test that typed numbers and text reach the draft only on commit
The Column Width and Prefix rows write the draft only when their edit is
committed. The existing dialog test still passed with either row reading
every proposal while typing, so a new test types into each row, checks
that the draft keeps its value, then presses Tab and checks that the
typed value is in the draft.
2026-11-29 00:39:56 -08:00
FredApps 452bf2013d Constrain the paragraph Tabs action row to the form width
Wrap the action buttons against the offered form width. Keep the accessibility lookup and pointer-click regression at both viewport sizes, and assert that the click target is inside the viewport.
2026-11-29 09:34:32 +01:00
dotCooCoo de7f1fc144 New Document: a test checks that a typed Artboards count keeps the preset until committed
Artboards is the one numeric field in Preset Details without a cancel
test. The new test types a count over the preset's 5, checks that the
dialog still shows the preset and its settings, presses Escape, and
creates the document with the preset's settings.
2026-11-29 00:07:51 -08:00
FredApps 6f3703bbab Advance shared PDF pin and honor Standard-mode Tab hiding
Keep the native and web craft-libs pins, Cargo.lock and PDF source checks on 57c8c8d4. Preserve the matching egui pin. Consult the shared Standard-mode chrome state for visibility and for show-panel requests; the dock already honors that state when drawing.
2026-11-29 08:38:26 +01:00
dotCooCoo 0bd735f53d Merge main into feat/scripts-doc-defaults 2026-11-28 23:20:21 -08:00
dotCooCoo 5ff0885acb Merge main into fix/panel-menu-command-names 2026-11-28 23:14:11 -08:00
dotCooCoo 8254c2f6d4 Slices: a refused OK keeps Slice Options and Divide Slices open with what was typed
Both dialogs closed on OK before the app checked the document and slices
they opened with, so a refusal (the selection changed, the document was
reverted, or the command failed) went to the status line and the typed
values were lost. They now open through the held-OK host: the check and
the command run while the dialog waits, a refusal shows its reason under
the rows with the values kept, and OK applies once the opening slices are
selected again.
2026-11-28 23:10:00 -08:00
dotCooCoo 7b7ad0bd0e Brush Options: test that a canceled Bristle slider drag leaves the brush as it was
For each of the five Bristle sliders, a held drag ended with Escape
restores the open dialog's field, and OK then keeps the brush and the
undo history unchanged. A released drag is kept by OK in one undo step.
2026-11-28 23:07:01 -08:00
dotCooCoo dc6ba53e6e Tool options: tests cover a canceled field edit that keeps the dialog open
The Live Paint Bucket Width test and the nullable length test pressed
Escape, which closes the modal, and then reopened it, so they passed with
the number and length rows still reading only proposals. Each test now
also types a value, adds text that does not parse, and leaves the field
with Tab. The dialog stays open, and the row must hold the opening value
again (4 px, and null).
2026-11-28 23:06:27 -08:00
.CooCoo 5f92d8987f Merge pull request #10040 from dotCooCoo/fix/scriptcheck-linear-steps
Script check: a script whose only finding is unsure names is scanned once
2026-11-28 23:02:49 -08:00
dotCooCoo 148541971f UI: Fidelity applies only once committed in freehand Tool Options and the Contextual Task Bar
The Contextual Task Bar ran tool.setOption for the Smooth tool's Fidelity
on every typed proposal, so a value typed and then canceled with Escape
stayed set on the tool. The bar now sets the option only when the field
commits the value.

In the freehand Tool Options dialog, Escape during a Fidelity slider drag
left the dragged value in the dialog. The draft now follows the drag
unrounded, takes the rounded value when the drag ends, and gets the value
from before the drag back on Escape, including a value above the slider's
end that the field allows. The dialog's Fidelity field reads its edit
events with landed(), as the variation fields do.

Follow-up to #9753.
2026-11-28 22:58:54 -08:00
dotCooCoo 4aea768632 Merge main into fix/panel-menu-command-names 2026-11-28 22:56:24 -08:00
dotCooCoo 92b009d819 Panels: menu rows show their names instead of command ids
The menus of Swatches, Brushes, Symbols, Graphic Styles, Appearance,
Paragraph, OpenType, Align, Glyphs, Pathfinder, Links, Actions, Asset
Export, Image Trace, Separations, Tabs, Flattener Preview, Color Themes
and CSS Properties showed 137 rows by their command ids, such as
"ui.swatches.newSwatch" and "brush.new". A panel menu row takes its
label from the command catalog, which lists the keymap's commands and
the menu bar's rows only; the panels' own commands, and commands with
params, have no entry there.

Each panel's menu states now name its rows, as Stroke and Transform
already did. Symbols' New Symbol… and Symbol Options… rows share one
command and showed one name, and the Links menu's four Select rows all
read Select by Link Status; each now shows its own name. The Paragraph
menu's East Asian rows are named too.

A test opens every panel menu in a frame of the whole app and fails
on a row that shows its command id, or on two rows of one menu level
that show the same name, with the East Asian and Indic options off
and on.
2026-11-28 22:56:23 -08:00
.CooCoo 81e7545e1b Merge pull request #10045 from dotCooCoo/fix/set-corners-commit
Set Corners: typed values reach the preview
2026-11-28 22:55:49 -08:00
dotCooCoo 5881c0c3f6 Arrange: tests cover the settings chosen in Replace with Top Object and Sort Objects
Replace with Top Object and Sort Objects bind their dialogs' values to
the fields the preview and OK read, as Arrange in Grid, Set Size of Each
and Randomize Opacity do, but no test covered those two. The new tests
pick Bounds and Keep Original in Replace with Top Object and Large to
Small in Sort Objects with the dialog's own controls, then check the
dialog's values, the preview and the document after OK. Each fails when
its dialog's values are not bound.
2026-11-28 22:53:58 -08:00
FredApps 0488c58928 Pin VectorCraft to current craft-libs and its matching egui
Keep native and web manifests, the lockfile, and the PDF source guard on the same craft-libs revision. Align the egui patch revision with craft-libs to retain one crate source.
2026-11-29 07:48:25 +01:00
dotCooCoo fe968bfd33 Dependencies: Cargo.lock takes craft-libs 869c9704d9 2026-11-28 22:43:57 -08:00
dotCooCoo 5b76aa74fe Merge main into fix/links-panel-row-thumbnails 2026-11-28 22:34:59 -08:00
dotCooCoo 57e0e62971 Links: rows of images on layers show their thumbnails
The rows' thumbnail lookup searched only the objects outside the layer
tree, so every linked or embedded image on a layer drew an empty box.
A row now finds its object by the layer tree's index first, then among
the objects outside the tree.
2026-11-28 22:34:52 -08:00
dotCooCoo 3b119db0d4 Merge main into fix/craft-libs-869c970 2026-11-28 22:31:06 -08:00
dotCooCoo a88b5ebe7e Dependencies: craft-libs 869c9704d9
Moves every craft-libs crate to 869c9704d9. The Image Trace test reads the dimmed Stroke row's slider by role, since the row now holds a slider and a number box under one name.
2026-11-28 22:31:06 -08:00
dotCooCoo fa6e65f16a Merge main into fix/pathfinder-disabled-shape-modes-dim 2026-11-28 22:31:02 -08:00
dotCooCoo c0704b7bb0 Pathfinder: Shape Modes buttons dim while they are off
With nothing selected the four Shape Modes buttons are off, but their
icon was drawn through a glyph that paints the icon's own colors and
ignores the off color, so they stayed at full strength while the
Pathfinders row dimmed. The buttons now show the set icon, and the glyph
is used only while members with different modes are selected, where it
adds the question mark and the buttons are on.
2026-11-28 22:31:01 -08:00
dotCooCoo ea99ddfa63 Merge main into fix/scriptcheck-linear-steps 2026-11-28 22:20:45 -08:00
.CooCoo 67f9daecb8 Merge pull request #9932 from makesomethingshit/fix/9814-web-file-drop-once
Web: route each dropped file once
2026-11-28 22:17:33 -08:00
.CooCoo c62571e073 Merge pull request #8822 from Hassan1305/fix-8531-snap-budget-edges
Smart Guides: the topmost objects keep their snap targets in a document past the anchor budget (#8531)
2026-11-28 22:17:29 -08:00
.CooCoo 8f719e5186 Merge pull request #10046 from dotCooCoo/fix/speed-i13854-menu-rebuilds
Menus: a key press rebuilds the menu states once
2026-11-28 22:15:15 -08:00
dotCooCoo ff47fc8699 Transparency: transparency.info reports the selected symbol part that transparency.set edits
With an object of a dynamic symbol instance selected by Direct Selection,
transparency.set without ids changes that object's opacity and blend mode
for the instance, and the Transparency panel shows those values. The
transparency.info command still reported the instance's own opacity and
blend mode. Without ids or id it now returns the panel's values
(Session::transparency_info), so it reports the part's opacity and blend
mode with the instance's isolate and knockout. With ids or id it still
reports those objects.
2026-11-28 21:58:54 -08:00
dotCooCoo 9e5e698372 Merge main into fix/speed-i13854-menu-rebuilds 2026-11-28 21:55:13 -08:00
.CooCoo 88772eefd1 Merge pull request #10043 from dotCooCoo/fix/panel-drags-after-file-revert
Drag and drop: panel drags held across File › Revert are not dropped on the restored drawing
2026-11-28 21:53:55 -08:00
dotCooCoo e6ffa5cc9e Merge main into fix/panel-drags-after-file-revert 2026-11-28 21:43:03 -08:00
.CooCoo 677414e15e Merge pull request #8131 from dotCooCoo/feat/color-wheel-copy-color-as
Part of #978: Copy Color As in the Color Wheel panel copies the color as hex, hex with alpha, CSS or CMYK values
2026-11-28 21:39:54 -08:00
dotCooCoo 288c14310d Merge main into feat/color-wheel-copy-color-as 2026-11-28 21:39:07 -08:00
.CooCoo 8ea80cb3bf Merge pull request #9093 from dotCooCoo/feat/hairline-slivers
Clean Up: remove hairline slivers thinner than a set width
2026-11-28 21:38:18 -08:00
.CooCoo 208185a7cf Merge pull request #10039 from dotCooCoo/fix/speed-i13930-global-edit-preview
Global Edit: the preview after an edit compares only the changed objects again
2026-11-28 21:38:02 -08:00
.CooCoo f9769056a1 Merge pull request #10041 from dotCooCoo/fix/save-options-radio-rows
Save options: All/Range and Transparent/Opaque radios have no empty caption over them
2026-11-28 21:37:46 -08:00
.CooCoo 3d5a154ed0 Merge pull request #10042 from dotCooCoo/fix/scriptcheck-linear-work
Scripts: the checker scans a script that binds no name once
2026-11-28 21:37:31 -08:00
dotCooCoo 63f1b5d45f Merge main into fix/speed-i13854-menu-rebuilds 2026-11-28 21:33:25 -08:00
HassanKhan 78795e188b Merge remote-tracking branch 'upstream/main' into fix-8531-snap-budget-edges
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-29 10:20:07 +05:00
.CooCoo 7da0740ae9 Merge pull request #10029 from dotCooCoo/fix/speed-i13929-dimmed-rows
Menus: a dimmed row runs its command's check once per rebuild
2026-11-28 21:13:40 -08:00
dotCooCoo 5f99cb7ebb Libraries: a swatch row held across File › Revert is not added to a library
The Libraries panel accepted a swatch row dragged before File › Revert and added the restored swatch of that name. Membership::grabbed now refuses stale rows, for the hover marker and on release.
2026-11-28 21:05:01 -08:00
dotCooCoo 1930ef33dd Set Corners: typed values reach the preview
The Set Corners dialog did not bind its values to the host fields that
the preview reads, so after typing a radius of 7 and a lower angle of
120 the host fields still held 10 and 0. The dialog now binds its
values with Bind::bound(fields), as the Arrange dialogs do.
2026-11-28 21:01:35 -08:00
.CooCoo 7a8866e036 Merge pull request #9251 from dotCooCoo/feat/scripts-app-undo-redo
Scripts: app.undo and app.redo step through the run's own edits
2026-11-28 20:55:35 -08:00
dotCooCoo a3ccd60b5b Script check: a script whose only finding is unsure names is scanned once
A script without includes whose declarations give names values the analysis
does not read came back from its first scan with `Known::unsure` set and no
names. `settle` counted that as something known and scanned the script again,
which found the same and doubled the scan's steps. The proptest
`any_bytes_are_checked_in_linear_work` shrank one such input to 104 bytes that
took 550 steps, over its bound of 536.

`settle` now keeps the first scan when it found no bound names and no File
objects: the flag comes from the script's own declarations, which the first
scan already read.
2026-11-28 20:55:33 -08:00
dotCooCoo 967f83c442 Merge main into fix/scriptcheck-linear-work 2026-11-28 20:50:15 -08:00
dotCooCoo 30d22d07c8 Scripts: the checker scans a script that binds no name once
A script whose only finding about its variables was that a name in
brackets is not one literal (o[k]) was scanned a second time. That
finding comes from the names the script declares, which the first scan
has already read, so the second scan gave the same report and added up
to three steps a byte. A 104-byte input of single-character tokens took
550 steps against the 536 the property test allows.

The check now repeats a scan only when a variable holds a member chain
or a File or Folder object. The property tests take their bound from
the number of scans: five steps a byte for a script scanned once, and
seventeen for one scanned up to five times.
2026-11-28 20:50:13 -08:00
dotCooCoo d81c6f85ba Merge main into fix/speed-i13929-dimmed-rows 2026-11-28 20:49:48 -08:00