Commit Graph
25740 Commits
Author SHA1 Message Date
dotCooCoo 07c33b9f2a Scripts: pathItems.removeAll judges a kept clipping region by its live effects
The check that an image or placed-document frame still encloses an area
now measures each subpath from its own first point, so a tiny frame far
from the origin is not lost to roundoff and a collapsed frame is not
counted through roundoff.

When a live geometry effect, such as an Offset Path inset, would leave
no clipping region once the paths are deleted, removeAll() now throws and
deletes nothing. The preflight copies only the members that hold a path
being deleted.
2026-12-04 09:32:28 -08:00
dotCooCoo 761f99fc5a Scripts: pathItems.removeAll keeps a clipping path that still holds an image
The document's pathItems.removeAll() refused to delete paths from a group
that is a clipping path when an image or placed document stayed inside
that group, although the image's frame still clips. It now counts the frame
of a visible image or placed document as clipping geometry when the frame
encloses an area, as Node::clip_shapes does, and still refuses when the
frame is collapsed to a line.
2026-12-04 06:49:26 -08:00
.CooCoo b36fbc76bd Merge pull request #10756 from dotCooCoo/fix/test-lint-port-review-fixes
xtask: test-lint reads paths, fields, run scripts and user values more exactly
2026-12-04 05:05:56 -08:00
.CooCoo 4e811a22ec Merge pull request #10820 from dotCooCoo/fix/new-document-name-label
New Document: the name field reads Document Name
2026-12-04 04:56:36 -08:00
dotCooCoo fcd52a13de Merge main into fix/test-lint-port-review-fixes 2026-12-04 04:33:59 -08:00
dotCooCoo 5c09bd17ca xtask: test-lint keeps changed lines, redirects and guards to their own construct
- Only a hunk that removes blank lines and line comments reaches past
  the next line to the code after it, so deleting an import before an
  unchanged test no longer marks that test as changed.
- A replacement hunk that removes a skip comment inside a test also
  marks the code after it, so the `return` the comment explained counts
  as changed.
- A folded `run: >2-` block uses its indentation indicator as the
  content indentation.
- An assignment right after `&&`, `|`, `;` or `(` with no space before
  it (`true&&NAME=x cargo test`) is read as one.
- Only a redirection of standard output (`>>`, `1>>`, `&>>`) to
  `$GITHUB_ENV` writes the printed assignment; `2>>` does not.
- A redirection after `;`, `&&`, `&` or a line break belongs to the next
  command and does not replace the write to the environment file.
- A size check joined to an `.all(...)` by `||` does not guard it.
- A numeric index or a first-item unwrap guards only an `.all(...)` over
  the local it reads (`expected[1]` does not guard `actual.iter()`).
- A field of a tuple literal (`let pair = (5, Kind::A); pair.1`) resolves
  to its element, as a field of a tuple struct does.
2026-12-04 04:33:59 -08:00
dotCooCoo 65beb2a7d1 Merge main into fix/new-document-name-label 2026-12-04 03:26:43 -08:00
dotCooCoo 626369bff3 New Document: the name field reads Document Name
The framework names New Document's name field plain Name. While the
dialog is open, the window's shell now shows its dialogs under a words
overlay that names the field Document Name, as it already retitles the
Print dialog. dialogs::shell_words combines both overlays.

This is temporary: storytold/craft-libs#5291 renames the field in the
pattern and also gives Save Document Preset its save icon, which the
pinned framework does not let VectorCraft change. The pin bump that
takes #5291 removes the overlay.
2026-12-04 03:26:32 -08:00
.CooCoo 4c7aeff19a Merge pull request #10810 from dotCooCoo/fix/new-document-recent-heading
New Document: Recent is headed as recent items and Saved is the second tab
2026-12-04 03:19:39 -08:00
.CooCoo a2f75d916f Merge pull request #10813 from dotCooCoo/fix/new-document-recent-units
New Document: Recent entries of one size keep their own units
2026-12-04 03:10:30 -08:00
dotCooCoo 5b1c3577f1 Merge main into fix/test-lint-port-review-fixes 2026-12-04 02:59:06 -08:00
dotCooCoo c0568c15e7 xtask: test-lint reads folded run blocks, later redirects and indexed clones exactly
- A deletion's changed range runs past lines that hold only a block
  comment, so a return after `/* spacer */` still counts as changed.
- A `run: >` block is folded as YAML folds it before its assignments are
  read, and a `run:` block ends at the first line indented no deeper than
  the `run` key, so a sibling `env:` key is read as a mapping.
- A later redirection of standard output (`>> "$GITHUB_ENV" > setup.log`)
  replaces the write to the environment file.
- A strict length bound past `usize::MAX` guards no `.all(...)` and no
  longer overflows.
- An element indexed out of a local with a non-ASCII name, or out of a
  nested container, holds the element's user value for `.clone()`.
2026-12-04 02:59:06 -08:00
FredApps 094d9bb88b Merge pull request #10277 from yoriswind/codex/10161-interface-font-language
Use the interface language for UI font fallback
2026-12-04 11:48:40 +01:00
FredApps be3ba1cea7 Merge branch 'main' into codex/10161-interface-font-language 2026-12-04 11:12:18 +01:00
FredApps cde182e959 Merge pull request #10015 from yoriswind/codex/10008-native-composite-adoption
Keep composite fonts when placing native artwork
2026-12-04 11:05:15 +01:00
dotCooCoo fc5bd2fa11 New Document: Recent is headed as recent items and Saved is the second tab
On the Recent tab the heading read "Blank Document Presets (n)", the
same as the preset categories, and Saved was the last tab, after every
category. Before the move to the shared dialog, Recent had its own
heading and Saved came right after it.

The dialog now turns on the shared dialog's recent_items and
saved_after_recent options: Recent reads "Your Recent Items (n)" over
four cards to a row, and the tabs read Recent, Saved, then the
categories.
2026-12-04 02:04:36 -08:00
FredApps 492ee7f9d8 Merge pull request #10566 from ruchirguitar/feat/gujarati-web-ui
Web: Gujarati can be chosen as the interface language
2026-12-04 11:03:09 +01:00
FredApps 217af0b77f Merge pull request #10489 from Terra854/fix/ai-dash-compatibility-10476
fix(ai): normalize and outline incompatible dash patterns
2026-12-04 11:02:21 +01:00
dotCooCoo ef100737d1 Merge main into fix/new-document-recent-units 2026-12-04 01:59:15 -08:00
dotCooCoo 2df4265f43 New Document: Recent entries of one size keep their own units
Recent keeps one entry per size and units, so an A4 made in pixels and an
A4 made in millimeters are two entries. The Recent cards decided which
entry the Preset Details fields came from by name, width and height only,
so every entry of that size showed the units chosen in Preset Details and
the two cards looked the same.

The settings now keep the units of the card or entry they were filled
from, and only the entry in those units shows the chosen units. The
other entries show their own. The dialog's fields list them as
basedOnUnits next to basedOn, so a set from outside the dialog keeps
them; editing any field but the units or the orientation in Preset
Details clears them, and the cards then match the entry in the units
shown.
2026-12-04 01:59:15 -08:00
dotCooCoo f177f37219 Merge main into fix/test-lint-port-review-fixes 2026-12-04 01:51:40 -08:00
dotCooCoo 53c7350eb4 xtask: test-lint reads run blocks, command names and guarded views more exactly
- A deleted line that can change a test also marks the blank lines after
  it up to the next line of code, so a `return` that a deleted skip
  comment leaves after blank lines counts as changed.
- A literal `run: |` block is read as one script, so a `{ ... }` group
  that spans lines keeps its redirection to `$GITHUB_ENV`.
- An unquoted `NAME=value` word counts only before the command name or
  for a command that reads it as an assignment, so
  `grep NAME=value file` sets nothing.
- The print exemption reads the command name (`echo`, `printf`) instead
  of any earlier word, and a write to `$GITHUB_ENV` needs a redirection
  or a `tee`, `Out-File`, `Add-Content` or `Set-Content` that takes it as
  its output file. `echo "NAME=x" "$GITHUB_ENV"` only prints.
- A discarded tuple (`let _ = (|| (), { ... });`) is not unwrapped like
  grouping parentheses, so its evaluated elements still count.
- A size check guards only the `.all(...)` views over the same local,
  and inside one assertion only while nothing between the read and the
  `.all(...)` changes the local.
- An index no longer guards full chunks of the indexed item
  (`rows[1].as_chunks::<2>().0`): the chain walk follows turbofish
  arguments.
- Selector locals and indexed locals may have names with no ASCII
  letters (`选`, `数`).
- `all_needs_a_non_empty_guard` is split in two and the size-check tuple
  has a type alias, so clippy passes.
2026-12-04 01:51:40 -08:00
.CooCoo 780199ad43 Merge pull request #10765 from dotCooCoo/fix/print-dialog-title-print
Print: the File › Print dialog is titled Print
2026-12-04 01:44:56 -08:00
.CooCoo 154d5f6eaf Merge pull request #10760 from dotCooCoo/fix/home-recent-files-heading
Home: head the recent files "Recent Files"
2026-12-04 01:33:50 -08:00
FredApps 6f6a6d4e20 Merge branch 'main' into codex/10008-native-composite-adoption 2026-12-04 10:31:44 +01:00
FredApps 44ffd596e8 Merge branch 'main' into feat/gujarati-web-ui 2026-12-04 10:28:06 +01:00
FredApps 440f672c1c Merge branch 'main' into fix/ai-dash-compatibility-10476 2026-12-04 10:28:06 +01:00
.CooCoo 3613c7f657 Merge pull request #10781 from dotCooCoo/fix/direct-select-ctrl-handle-mirror
Direct Selection: Ctrl held before pressing a handle mirrors the opposite handle
2026-12-04 01:17:57 -08:00
f29fe10c32 Retype: add a context menu to matching-font rows (#10594)
* Retype: add a context menu to matching-font rows

A secondary click, or Shift+F10 on the focused row, selects a font row in
the Retype panel without setting its font and opens a menu with Apply Font
(what a click on the row does; off without live text selected), the panel
menu's sample sizes and Reset Retype Panel. The menu closes when the list
or the document changes (G12).

* Rerun CI: the apt package download failed in a test shard's setup

---------

Co-authored-by: ruchirguitar <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 10:11:49 +01:00
dotCooCoo 9c8f31344a xtask: test-lint reads grouped values, later checks and non-ASCII names more exactly
- A closure or async block bound to `_` inside parentheses
  (`let _ = (|| { … });`) is dropped unrun; `(|| { … })()` still runs.
- A length check after an `.all(…)` assertion guards it only when no code
  between them changes the local's item count (`xs.push(1)` included).
- A strict bound (`xs.len() > 1`, `1 < xs.len()`) gives one item more
  than its count, so `.windows(2)` after `> 1` is guarded.
- An index into the outer collection no longer guards `.all(…)` over an
  item read through `.iter_mut()`, `.windows(…)`, `.chunks(…)` or
  `.chunks_exact(…)`.
- A grouped argument (`std::mem::take((xs))`) is found as a call that can
  change a `&mut` local; `(xs).len()` stays a read.
- A nested `fn` with a non-ASCII name is skipped by the polling scan.
- A non-ASCII container local is followed to its initializer when deciding
  whether a conversion can test a user value.
- A `cfg` attribute covers a function whose return type holds `;`
  (`-> Result<(), [u8; 2]>`), so `never-run` reports it.
- The test repository directory comes from `tempfile`, created for the
  test alone.
2026-12-04 01:07:44 -08:00
yoriswindandFredApps aaf3cc87f0 PDF export: keep joins between opaque mesh patches smooth (#10372)
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:43:27 +01:00
yoriswindandFredApps debd26b38f Appearance: reorder shared effects on multiple objects (#10353)
* Appearance: reorder shared effects on multiple objects

* Appearance: compare resolved effect lists for aligned moves

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 09:43:08 +01:00
Valentin KleinandFredApps e83947b9af Skip distant curves when testing outline hits (#10627)
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:42:44 +01:00
dotCooCoo fe8cdbf220 Merge main into fix/test-lint-port-review-fixes
# Conflicts:
#	xtask/src/test_lint.rs
2026-12-04 00:29:40 -08:00
yoriswindandFredApps 406dac5645 Color panel: apply picks to the selected Fill or Stroke well (#10413)
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:09:08 +01:00
yoriswindandFredApps 8ce080b5a4 Cursors: keep the pen nib details visible (#10393)
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:00:19 +01:00
.CooCoo 96f347651e Merge pull request #10757 from dotCooCoo/fix/doc-tests-unsafe-code
Doc tests: unsafe code is denied in doc tests too
2026-12-03 23:08:32 -08:00
yoriswindandFredApps 4070779f88 View: keep Cmd+0 on Fit Artboard in Window (#10396)
Co-authored-by: FredApps <[email protected]>
2026-12-04 07:52:39 +01:00
yoriswindandFredApps b2f59ace07 Docs: add a script for editable numbered grids (#10417)
* Docs: add a script for editable numbered grids

* Docs: bound the numbered-grid example and validate label numbers

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 07:36:50 +01:00
dotCooCoo 8b81ceb1bc Merge main into fix/direct-select-ctrl-handle-mirror 2026-12-03 22:29:17 -08:00
dotCooCoo 472d7f8e69 Direct Selection: picked handles stay picked after a Cmd/Ctrl+Shift drag
With two direction handles picked, a Cmd/Ctrl+Shift press on one of them
drags that handle alone with its opposite handle mirrored and its angle
constrained. Shift kept the press from counting as a press on one of
several picked handles, so the press did not record the picks, and its
release after a drag, or Escape during it, left only the pressed handle.

The press now records the picks for any mirroring press on one of several
picked handles, with or without Shift. Shift still keeps a drag from
moving every picked handle, and a Shift-click still adds or removes the
pressed handle.
2026-12-03 22:29:17 -08:00
.CooCoo babeae8c65 Merge pull request #10801 from dotCooCoo/fix/color-panel-idle-replay-flake
Tests: dock panel tests wait for the font scan before counting idle frames
2026-12-03 21:35:04 -08:00
dotCooCoo 629b4f5b2c Merge main into fix/direct-select-ctrl-handle-mirror 2026-12-03 21:26:45 -08:00
dotCooCoo 74b2ffdb82 Direct Selection: picked handles stay picked after a Cmd/Ctrl drag
A Cmd/Ctrl press on one of several picked direction handles drags that
handle alone so its opposite handle mirrors. The press cleared the picked
handles, and neither the release nor Escape restored them, so after the
drag only the pressed handle could be picked again.

The press now records that it is such a mirroring press. Its release
after a drag, and Escape during the drag, restore the handles that were
picked when the press began. A drag without Cmd/Ctrl still moves every
picked handle, and a click still picks the pressed handle alone.
2026-12-03 21:26:45 -08:00
dotCooCoo 4e2581f63d Doc tests: treat cfg_attr lints by what they could do, and skip raw C strings
The check did not read lint attributes inside cfg_attr at all, and it
does not evaluate cfg conditions. Two roots passed although the
condition all() is always true:

- #![cfg_attr(all(), forbid(unsafe_code))] with doc-test deny: the
  library forbids unsafe code, so its doc tests need forbid.
- #![doc(test(attr(deny(unsafe_code), cfg_attr(all(), allow(unsafe_code)))))]:
  the allow lowers the deny.

A cfg_attr now counts only in the direction that is never too lenient:
a forbid inside one asks the doc tests for forbid, and an allow, warn
or expect inside one lowers the doc tests' level. A deny or forbid
inside cfg_attr in the doc-test list still does not count.

The comment and literal scanner also skips raw C strings (cr"..."), so
text such as #![forbid(unsafe_code)] inside one is not read as an
attribute. Tests cover each case.
2026-12-03 21:17:30 -08:00
.CooCoo b767f2bea0 Merge pull request #10759 from dotCooCoo/fix/image-trace-draft-follows-selection
Image Trace: an unfinished slider or Divider value stays with the object it was typed for
2026-12-03 20:27:37 -08:00
dotCooCoo 1bccc76d77 Tests: dock panel tests wait for the font scan before counting idle frames
dock::tests::idle_frames_replay_the_color_panel failed now and then with
"idle frames replay the Color panel" (left: 1, right: 0). The app starts
the scan of the installed fonts on a background thread, and frames do
not wait for it. When the scan ends, the fonts' generation changes, and
a panel body's inputs hold that generation through layout_inputs. On a
loaded machine the scan can end after the helper's two settle frames,
so the first idle frame runs the body once.

The panel() helper now calls FontDb::global().family_list() after
making the app, which waits for that scan (or runs it), as the font
menu, properties and native menu tests already do. Every test in the
module goes through panel(), so all of them get the fix.
2026-12-03 20:23:55 -08:00
.CooCoo 003489cb7c Merge pull request #10730 from dotCooCoo/fix/tabs-draft-edit-target
Tabs: an unentered X, Leader or Align On value stays with its stop
2026-12-03 20:18:00 -08:00
.CooCoo 304e634880 Merge pull request #10779 from dotCooCoo/fix/selection-anchor-mesh
Canvas: selection anchors paint from one kept mesh
2026-12-03 20:10:17 -08:00
dotCooCoo fb0bce30e6 Doc tests: read the unsafe-code level that the doc-test attributes leave in force
The check accepted a library root when deny(unsafe_code) or
forbid(unsafe_code) appeared anywhere inside #![doc(test(...))]. Two
roots passed although their doc tests still allow unsafe code:

- #![doc(test(attr(cfg_attr(any(), forbid(unsafe_code)))))]: the lint
  sits inside a cfg_attr whose condition is false, so rustdoc adds no
  lint to the doc tests.
- #![doc(test(attr(deny(unsafe_code), allow(unsafe_code))))]: rustdoc
  adds both attributes in order, and the later allow overrides the deny.

The check now reads only the lint attributes that are direct members of
attr(...), in order, and keeps the last level for unsafe_code. A later
allow, warn or expect lowers deny, and nothing lowers forbid. Tests
cover each case.
2026-12-03 20:06:43 -08:00