Commit Graph
24066 Commits
Author SHA1 Message Date
dotCooCoo b2e8b5637e Merge main into chore/never-run-test-allows 2026-12-01 02:55:37 -08:00
dotCooCoo 2c1278280b xtask: test-lint cfg_attr, #[path] and inline-module gates, changed parent declarations
- never-run reads cfg(...) nested in cfg_attr, and blanks comments in cfg predicates.
- A file's inherited gates come from the mod declaration that loads it: #[path] overrides
  are resolved, and a declaration inside an inline module gates the file under that
  module's directory. Several declarations of one file join with any(...).
- In changed-files mode, a change to a parent mod declaration or its cfg counts for the
  never-run hits of the files it loads, including files that did not change.
- Round trips reject arithmetic before the lookup (1 + lookup(k)).
- reads-source ignores Rust paths that occur only in comments.
- if let and while let bindings shadow outer bindings only inside their body.
- The mirror allow test now starts from an assertion that is reported.
2026-12-01 02:55:37 -08:00
dd1f4d2936 Tools: add search beside Edit Toolbar (#8770)
* Tools: add search beside Edit Toolbar

Open the existing tool-aware command palette from the Tools footer, preserving the customization button and fitting both column layouts.

Closes #8758.

* Format the toolbar Search interaction regressions

* Format the native Search tooltip expectation

* Use the current stroke paint API in Properties

* Scope app-bar test lookups to the title bar

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-01 11:34:49 +01:00
.CooCoo 295da28ec5 Merge pull request #10420 from dotCooCoo/fix/pdf-read-counter-address-reuse
PDF: count test reads of a buffer from a mark, not over its address's whole history
2026-12-01 02:32:29 -08:00
.CooCoo e8cd86bcf5 Merge pull request #10424 from dotCooCoo/fix/menu-font-scan-test-hang
Tests: the held font scan test no longer hangs when its pipe is released early
2026-12-01 02:23:55 -08:00
dotCooCoo 0f95fb0880 Merge main into chore/never-run-test-allows 2026-12-01 02:21:01 -08:00
dotCooCoo e7715d880b xtask: test-lint round trips, mod scopes, never-run allows and doc names
- census: a lookup counts as a round trip only when its arguments read the
  loop entry, so `lookup("baseline") == expected` is a real check.
- never-run: a `mod child;` inside an inline `mod platform { ... }` loads
  platform/child.rs, so it no longer gives its cfg to src/child.rs.
- never-run: an allow covers only the test it sits above; a module cfg no
  longer stretches it over the next test in the module.
- exact-pixel: document geometry is matched by identifier (`doc`,
  `document`, `doc_*`, `*_doc`), so `dock_rect` is checked.
2026-12-01 02:21:01 -08:00
yoriswind a0bdd86acc Reuse document resources when rendering PDF effects (#10342) 2026-12-01 11:17:48 +01:00
yoriswind 93286c8deb Dock panels inside the window on native Wayland (#10341) 2026-12-01 11:14:03 +01:00
yoriswind e5bdd539d0 Keep file progress windows visible between frames (#10343)
* Keep the file progress window visible between frames

* Apply completed jobs while showing progress
2026-12-01 11:01:10 +01:00
yoriswind 45fd2a5347 Troubleshooting: report the active graphics driver (#10348) 2026-12-01 10:59:09 +01:00
.CooCoo 0e8f44581d Merge pull request #10388 from dotCooCoo/fix/affinity-features-synthetic
Tests: run the attached recolor import test on a synthetic document
2026-12-01 01:53:38 -08:00
.CooCoo f77dfbae60 Merge pull request #10354 from dotCooCoo/fix/tool-icon-stroke-width
Icons: draw every tool icon's outline at the same width
2026-12-01 01:51:24 -08:00
.CooCoo 69b1f26ff0 Merge pull request #10377 from dotCooCoo/fix/tool-shortcut-collisions
Shortcuts: a lone Alt over the canvas no longer gives the menu bar the keys
2026-12-01 01:51:18 -08:00
dotCooCoo 010367e39e Tests: allow the 26 Windows and macOS tests that CI never runs
Each test that a cfg limits to Windows, macOS or a case-insensitive file
system gets a `test-lint: allow never-run` line naming its platform, so
`cargo xtask test-lint` no longer reports them. The tests are unchanged
and still run on their own platform.
2026-12-01 01:46:09 -08:00
.CooCoo 3b1cea04f5 Merge pull request #10081 from dotCooCoo/feat/split-cache-warm
CI: the cache warm on main builds its six shards in parallel
2026-12-01 01:35:00 -08:00
dotCooCoo c9d9b75f76 Tests: the held font scan test no longer hangs when its pipe is released early
the_menu_family_list_now_does_not_wait_for_the_scan holds the font scan
at a named pipe and released it with one blocking open for writing. That
open waits for any reader and lets go only the readers already waiting.
When the scan reached the pipe after the release, or ran on the test's
own thread because its background thread did not start, nothing opened
the pipe again and the test waited until the job timed out (a gate shard
on pull request 10368 ran for over two hours).

The release thread now opens the pipe for reading and writing, which
does not wait for a reader, and repeats that until the scan has ended.
The thread is joined after the list that waits for the scan.
2026-12-01 01:30:45 -08:00
.CooCoo 7e565c3922 Merge pull request #10376 from dotCooCoo/fix/thin-stroke-close-anchors
Render: thin strokes keep smooth curves round where their lines turn sharply
2026-12-01 01:30:30 -08:00
dotCooCoo 1689d60810 Merge main into chore/never-run-test-allows 2026-12-01 01:29:38 -08:00
dotCooCoo 236149156b xtask: never-run follows cfg around mod declarations and counts cfg changes 2026-12-01 01:23:24 -08:00
.CooCoo 084c01d031 Merge pull request #10364 from dotCooCoo/fix/halftone-euclidean-elliptical
Vector Halftone: Euclidean and Elliptical dot shapes
2026-12-01 01:22:58 -08:00
dotCooCoo c944c493e5 xtask: test-lint flags read_to_string of Rust files 2026-12-01 01:17:43 -08:00
.CooCoo 0d450fa20a Merge pull request #10369 from dotCooCoo/fix/shape-builder-freeze
Shape Builder: stop building regions of paths that cross too often
2026-12-01 01:16:11 -08:00
.CooCoo 643529e3ea Merge pull request #10387 from dotCooCoo/fix/pdf-stream-scan-tests
Tests: cover broken hex strings in the stream scan and restricted file fonts
2026-12-01 01:06:03 -08:00
dotCooCoo 81fd5e5d8f Merge main into chore/test-lint-rules 2026-12-01 01:01:58 -08:00
dotCooCoo 26f992d7bb Merge remote-tracking branch 'origin/chore/test-lint-census' into chore/test-lint-rules 2026-12-01 01:01:57 -08:00
dotCooCoo 573246a5b2 xtask: test-lint adds mirror, constant-echo, fixture-only, never-run and exact-pixel rules 2026-12-01 01:01:57 -08:00
dotCooCoo 3a5a7252e2 Merge main into fix/pdf-read-counter-address-reuse 2026-12-01 01:01:39 -08:00
.CooCoo e4eaaabd0b Merge pull request #10352 from dotCooCoo/fix/menubar-padding
Menu bar: a smaller Home button and padding beside each menu title
2026-12-01 01:00:12 -08:00
dotCooCoo 68dbba0b92 PDF: count test reads of a buffer from a mark, not over its address's whole history
reads_of counts reads by buffer address and never forgets them, so a buffer
allocated where another test's freed buffer was read starts with that count.
linked_pages_read_the_file_once_and_a_blank_page_keeps_its_crop_box asserted
reads_of(&blob) == 0 and failed once that way under 16 test threads.

Each read now gets a sequence number. read_mark returns the next one and
reads_of_since counts only the reads at or after a mark. The linked-pages test
takes a mark before opening the file.
2026-11-30 23:05:46 -08:00
dotCooCoo f08d12949c Tests: run the attached recolor import test on a synthetic document
The recolor adjustment test read test.af from the repository root and
returned early when the file was absent, so it never ran in CI. It now
builds a magenta rectangle with an attached Recolor adjustment in the
test and checks that lightness 1 imports as a white fill, that
lightness 0.5 at hue 0 draws pure red, and that a hidden adjustment
leaves the fill unchanged.
2026-11-30 23:03:43 -08:00
dotCooCoo 3f21a06bed Tests: cover broken hex strings in the stream scan and restricted file fonts
A hex string broken by a byte that is neither a hex digit nor white space
is no string: the hostile-input scan goes on from the next byte, so a
cross-reference stream after it is still read. A font a PDF carries with
restricted license flags (OS/2 fsType 0x0002) keeps drawing its type, and
a PDF saved from the document draws that type as outlines with the license
warning instead of embedding the font again.
2026-11-30 23:03:07 -08:00
dotCooCoo f1ef1a4e39 Render: a thin stroke takes the corners of its own subpath
A corner in one subpath gave the stroke's join to the lines of a curve
in another subpath that met at the same point, so a miter could be
drawn there instead of a round join. The corners are now kept per
subpath and each subpath of the outline reads only its own.

Test: a curve's outline is the same with and without a second subpath
that has a corner at the curve's start.
2026-11-30 23:02:15 -08:00
dotCooCoo 7f6ff4d60e xtask: census counts rejections and asserting helpers as checks
A loop over a table that also calls unwrap_err or expect_err checks that
some inputs are rejected, so it is no longer reported as census. Calls in
failure messages do not count, and a panic! that only enforces success
does not exempt the loop.

An asserting helper called in an .all(...) predicate also counts as a
check, unless a presence check can pass without the helper running
(the other side of an ||). Helpers called with a turbofish are matched
too.
2026-11-30 22:48:28 -08:00
dotCooCoo 85ad10feb5 Vector Halftone: Euclidean quadrant uses the shared arc and segment helpers
quadrant() had local closures that repeated ellipse_arc() and segment().
It now calls those helpers, as elliptical_quadrant() does. The geometry
is unchanged.
2026-11-30 22:32:07 -08:00
dotCooCoo 12cb63642e Shortcuts: a lone Alt over the canvas no longer gives the menu bar the keys
Alt is a tool modifier, and pressing and releasing it without a click
moved the keys to the menu bar on Windows and Linux. The next tool
letter then opened the menu with that access key (V opened View, W
Window, T Type) instead of choosing the tool. While the canvas has the
keys, the canvas now takes the lone Alt tap. F10 and Alt with a letter
still open the menus, and a lone Alt in a field or on the bar is
unchanged.
2026-11-30 22:27:55 -08:00
dotCooCoo 69ff74a63b Render: thin strokes keep smooth curves round where their lines turn sharply
Since #9972 a thin stroke along a curve is drawn as lines, and where two
of those lines met at a sharp angle the stroke's own join was drawn
there. Along smooth anchors that sit close together after a bend, or a
curve that bends tightly, the lines turn sharply, so a miter join drew a
spike past the stroke and the smooth curve showed sharp corners on the
canvas. The document's anchors are unchanged; only the drawing was
wrong.

The stroke's join is now drawn only at the path's own corners, where
two segments meet with tangents that are not in line. Where the lines a
curve is drawn with turn sharply they meet with a round join, as the
stroke along the curve itself is round there.

Tests: a bend followed by smooth anchors 0.1 and 1 apart keeps every
outline point within the stroke's width of the curve and covers it;
with long handles the outline matches the curve's own outline away
from its edge; 200 random cubics with a miter join keep their outline
within the stroke's width of the curve.
2026-11-30 22:21:53 -08:00
dotCooCoo aa44d2a3a0 xtask: census skips inequalities, derived values and subset loops
- assert_ne!, debug_assert_ne! and prop_assert_ne! in a table loop are not
  round trips.
- A round trip counts only when the compared operand is the parsed or
  looked-up entry itself, optionally unwrapped, borrowed or wrapped in
  Some(...); parse(..).unwrap().children.len() is a real check.
- An .all(...) presence check over a table is reported only when the whole
  condition holds on presence checks: joined by && to a real check it is
  not reported, while an || that lets the presence branch pass alone still
  is.
- filter_map, take_while, skip_while and map_while pick a subset, as do a
  bounded iterator zipped in or returned by flat_map. Adapters inside a
  closure on the outer chain do not count.
2026-11-30 21:58:13 -08:00
dotCooCoo bb80cc827c Shape Builder: name sliver drops in the over-cap region note 2026-11-30 21:45:20 -08:00
dotCooCoo 1b59873456 Shape Builder: say the filled areas keep their own cap past the map's
When the sweep cuts the paths into more than SHAPE_BUILDER_MAX_MAP_EDGES
pieces, the Shape Builder falls back to the regions of the filled areas,
which are capped separately. The docs said it then finds no regions.
2026-11-30 21:30:33 -08:00
dotCooCoo 0a4fcb67ae Vector Halftone: Elliptical dots bridge along their length from 40%
Below 50% the Elliptical dot was an ellipse clipped to the cell's
diamond, so from 40% horizontal neighbors met at a single point and at
50% the dot reached the vertical neighbors too. The dot is now an
ellipse as wide as its cell at 40%; past that it is clipped to the
cell's side, which makes a bridge to the next dot, and to a middle-tone
cut line through the quadrant's center, which keeps the short side
apart until 60%. Areas still match the tone.
2026-11-30 21:27:14 -08:00
dotCooCoo 7a46d5ec56 Shape Builder: stop building regions of paths that cross too often
Paths that cross each other many times are cut by the sweep into far
more pieces than they have segments, and building the regions and edges
of those pieces took minutes and gigabytes of memory. 400 circles
stacked nearly on top of each other (1,600 segments) were cut into
about 320,000 pieces, and their map took 60 s and 4.2 GB, enough to
make the whole computer unresponsive.

The Shape Builder now stops after the sweep when it cuts the paths into
more than SHAPE_BUILDER_MAX_MAP_EDGES pieces (twice
SHAPE_BUILDER_MAX_SEGMENTS, what open paths that cross nothing make at
that cap) and finds no regions. The filled-area regions it falls back
to are capped the same way.
2026-11-30 21:19:58 -08:00
dotCooCoo 340bf84cb8 xtask: test-lint reports census tests
A new report-only rule, census, lists tests that loop over a whole table
(a SCREAMING_CASE constant, Type::ALL, Type::iter(), or a call named like
a catalog such as presets() or all_swatches()) and assert only that each
entry is present, non-empty, or parses back to itself. Such tests walk
every color, swatch or preset and check a property each entry has by
construction. Loops over a few entries (take, skip, filter, a slice),
loops that call an asserting helper, and comparisons with an expected
value written in the table are not reported.

cargo xtask test-lint --all lists 53 census hits on main.
2026-11-30 21:11:36 -08:00
dotCooCoo b143f92f3f Vector Halftone: Euclidean and Elliptical dot shapes
Object > Vector Halftone and the live Vector Halftone effect get two
dot shapes that follow the classic spot functions. Euclidean dots are
round in the highlights, meet corner to corner at 50% as a checkerboard
and turn into round holes in the shadows. Elliptical dots are long,
join into chains along their length at 40% and on every side at 60%,
then turn into long holes. Each dot is a vector path whose area is the
cell's tone. The existing Ellipse shape is unchanged.
2026-11-30 20:49:40 -08:00
dotCooCoo b301d1c116 Merge main into feat/split-cache-warm 2026-11-30 20:46:38 -08:00
dotCooCoo de519fe565 CI: call the gate at craft-common-actions main again
craft-common-actions#408 merged, so main's gate.yml has the warm-split input.
2026-11-30 20:46:38 -08:00
.CooCoo 84335645da Merge pull request #10335 from dotCooCoo/fix/linked-profile-listing
New Document: Manage Profiles reports a linked profile as unusable
v0.25.1-nightly.20261201.46594001454.1.g84335645dabd
2026-11-30 20:23:26 -08:00
dotCooCoo 183c365eff Icons: draw every tool icon's outline at the same width
The app icon set declared a 1.6-unit stroke, but its own dc-* icons draw
1.5-unit outlines and its Lucide copies draw 2-unit ones. The framework
scales each icon's strokes by the drawn width over the declared width, so
the dc-* icons drew about 6% thinner than the catalog's icons and the
Lucide copies (Pen, Paintbrush, Add and Delete Anchor Point and others)
about 25% heavier, which made the tool rail's outlines uneven.

- Split the table: the dc-* icons stay in the "vectorcraft" set, now
  declared at 1.5, and the Lucide copies move to a "vectorcraft-lucide"
  set declared at 2. icons::register() registers both.
- dc-free-distort drew a 2-unit outline; it now draws 1.5 like the rest
  of its set.
- A test checks that every app icon's outline width equals its set's
  declared width.
2026-11-30 20:09:42 -08:00
dotCooCoo 2030c7b2d2 Menu bar: a smaller Home button and padding beside each menu title
Home in the application bar is a small control, so its square and glyph
take the small control sizes. The menu titles are menu rows with the
control padding on each side of the text, so the hover and open
highlight no longer ends at the edge of the letters.
2026-11-30 20:00:26 -08:00
.CooCoo 703252de65 Merge pull request #10334 from dotCooCoo/fix/script-run-accounting
Scripts: list rebuilds count against the run, a stop is not masked, bad answers throw at the call
2026-11-30 19:18:27 -08:00