* SVG import: refuse an SVG the memory can't hold instead of running out
The element limit now follows the installed memory, or the process's
cgroup limit where that is lower: about 8 KB an element, up to the
999,999 elements usvg reads. Past it the SVG is refused with an error
naming the memory, before usvg makes its tree.
Fixes#10165
* Tests: the shared element limit test follows the machine's limit
Moves craft-libs to a5669ed2f, which places overlays in the room of the
monitor the window is on (craft-libs f31beb26d, merged in #4506). The
old room assumed monitors tile the desktop by their size, so on a
landscape monitor to the right of a portrait one the File menu opened
at (726, 442), far from its title, with scroll arrows.
The new pin is craft-libs main just before #4278, whose dialog changes
need VectorCraft test updates that come with a later pin bump.
The new test menu_on_second_monitor opens the File menu with the window
on the landscape monitor at 1x and 1.5x; it fails on the old pin with
the menu at (726, 442).
- Functions and macros declared inside a test no longer count as its
assertions or calls; a call to one still counts as a helper call.
- `should_panic` exempts a test only as an applied attribute:
`#[should_panic]`, or inside `#[cfg_attr(test, ...)]`.
- `only-weak` strips parentheses around the whole condition, so
`assert!((x.is_ok()))` is classified like `assert!(x.is_ok())`.
- `#[ cfg(test)]` and attributes with comments between `#`, `[` and
`cfg` mark test code like the compact form.
test_regions matched only the exact `#[cfg(test)]`, so helpers in a
module under `#[cfg(all(test, windows))]` or
`#[cfg(all(test, not(target_arch = "wasm32")))]` (as in
apps/vectorcraft-web/src/file_drops.rs) were not test code: a sleep in
such a helper passed the check, and its asserting helpers were not found.
A cfg predicate now counts when it is `test` or an `all(...)` with such a
predicate among its arguments, at any depth and with any spacing.
`any(test, ...)`, `not(test)` and `feature = "test"` do not count.
Replayed over the last 300 merges to main, only-weak would have failed
3 merges on 4 hits, and all 4 were tests where an is_ok or is_some check
is the behavior under test (a lease or start file that can be taken
again, a never-panic property test, a label found by a search with the
row's position in its predicate). Of the 39 only-weak hits in the whole
workspace, most are the same kinds: registry and label lookups,
still-imports and never-panic tests.
only-weak now lists its hits without failing, like all-unguarded. The
check fails on self-compare, ignore-without-reason and sleep. With this
change the replay fails 0 of 272 merges that change Rust files.
- The module docs and docs/development.md name the four rules that fail
the check, and describe `only-weak` and `self-compare` by what they
match (`len() > 0`, `assert_ne!`).
- The changed-lines diff passes `--inter-hunk-context=0`, so a clone's
`diff.interHunkContext` cannot mark unchanged lines between two edits.
- Single-letter workflow variables count as set.
- Test names with non-ASCII letters are read whole.
- An allow in a block comment needs a reason before `*/`.
- `all-unguarded` uses only a binding still in scope at the assertion,
treats a `const` declared with different values as unknown, and drops
a counted local once its collection may shrink or be replaced.
- `only-weak` ignores `unwrap_err`, `expect_err` and `panic!` in failure
messages.
- `self-compare` leaves out operands that call a method returning the
next value each time (`next`, `pop_front`, `recv` and others).
- An `ignore-without-reason` span reaches the attribute's `]`, so a
change to a reason on the next line counts.
- Changed mode decodes `+++` labels (the tab after a path with a space,
C-quoted paths), and the file inventories read `git ls-files -z`, so
files with spaces, quotes or non-ASCII names are linted.
- `#[test_case(1; "one")]` arguments and other attributes no longer end
the item before its `fn`, and an inner `#![...]` attribute before the
first test is not part of that test's span.
- A helper name counts as asserting only when every function of that
name in the crate's test code asserts.
- `.stdout(file)` and other stream builder calls count as configuration
whatever their argument, so `exit-status-only` still reports.
- A `return` inside `async { ... }` or `async move { ... }` ends the
future, not the test, for `early-return`.
- `env-gate-unset` looks for setters in code only, not in string
literals, ignores `echo` and `printf` output that is not written to
`$GITHUB_ENV`, and its span reaches the variable name on a later line.
- `sleep` reports `thread::sleep`, or a bare `sleep(...)` only where the
file imports `thread::sleep`.
- `reads-source` checks raw string paths in `include_str!` and
`ends_with`.
- A test pins that a collection changed after its `assert_eq!` loses
that guard for `all-unguarded`.
Replayed over the last 300 merges of main, all-unguarded failed good
pull requests on collections that cannot be empty. It now leaves out:
- plain locals bound to an array type of a positive length, to a
non-empty array literal or vec![...], or to a literal range followed
only by methods that keep an item (map, iter, rev, collect into a
known collection ...); counts may be consts of the file
- locals filled by a push or insert on every pass of a loop over such a
source
- fields and const or static items the file declares only as arrays of
a positive length
- collections compared with a non-empty literal through such methods,
directly or through a local built from them, and assertions on a
local bound to a count or length
- .windows(k) and .chunks_exact(k) when the collection has k items
Later code that may remove items or replace the collection cancels the
exemption.
Only only-weak, self-compare, ignore-without-reason and sleep fail the
check now. The other rules list their hits on changed lines without
failing. On the same 300 merges, 1 would fail (an only-weak test), and
the 3 all-unguarded hits are tests an empty result passes. On main at
07037afda8, all-unguarded lists 392 hits instead of 433.
`cargo xtask test-lint` reads the Rust files changed since a base and
fails on tests that a wrong result can pass: `.all()` with no length or
emptiness check, only is_ok/is_some/non-empty checks, `assert_eq!(x, x)`,
a process test that checks only the exit status, no assertion and no
asserting helper, a silent early return on a value from the code under
test, `#[ignore]` without a reason, an environment variable that no CI
leg sets, `thread::sleep` in test code, and test code that reads Rust
source outside the listed source audits.
Only hits on changed lines, or in a test with a changed line for the
rules about a whole test, fail it; older hits in the same files are
counted. The base is --base or TEST_LINT_BASE, the first parent of the
checked-out commit in CI (a shallow checkout fetches it), else the merge
base with upstream/main or origin/main. `// test-lint: allow <rule>
<reason>` exempts a line. `--all` lists every hit by crate and rule and
does not fail. `cargo xtask ci` runs it after cursors, so it runs in the
checks shard.
craft-libs main at 2680a3b3f adds #4364 (its egui pin moves to
07c20531, which VectorCraft's egui lines now match), #4425, #4409, #4414,
#4406, #4349, #4393, #4392, #4398, #4415, #4411, #4402, #4400, #4417,
#4399, #4407, #4375, #4428 and #4451. winit stays at 0dfcec0e, the rev
craft-libs pins. craft-nightly and craft-web-api move with the other
craft-libs crates, and xtask pdf-deps checks the new rev. Cargo.lock:
epaint_default_fonts now depends on brotli 9.1.3 and brotli-decompressor
6.3.2.
The Layers panel built its row order again on every selection change:
each change made a new Tracked for the rows, and the rows reported no
order revision, so the panel asked every row for the rows inside it
(7 calls for the 6 rows of the new test's document).
- LayerRows reports LayerTree::order_revision: a hash of the document,
the open rows, Show Layers Only and the isolated node. The selection,
the highlighted rows, the current layer and the names are not in it.
- refresh_rows writes new rows into the kept Tracked while the document
(uid and revert count) stays the same, and makes a new Tracked for
another document or after File > Revert.
- The craft-libs pin moves from 186a229c8 to aa7e668ec, current
craft-libs main, which has craft-libs#4319 (LayerTree::order_revision).
The winit rev moves to 0dfcec0eb, as craft-libs pins it; egui stays
at 14c39fed1. xtask pdf-deps checks the new rev. craft-nightly keeps
the rev main pins it at.
Two tests failed on the new craft-libs:
- canvas::tests::a_selection_drag_draws_its_marks_in_the_frame_the_pointer_moves:
since craft-libs#4143 a frame runs one pass where it ran two, and the
bounding box, Live Corners, hollow corners and shape widgets were drawn
before the tool host took the frame's pointer event, so the box showed
at the old corner. They are now drawn after it, into paint slots kept
in their old order.
- tests::nativemenu::applying_a_dialog_preview_reads_the_menus: since
craft-libs#4350 the closed dialog's angle field gives up the keys one
frame sooner, so the menus are sent again without the text-editing
gate within the frames the test ran. The test now waits for the gate
and counts the read and that send apart.
`cargo xtask ci warm` built each test shard with `--lib --bins --no-run`,
while the shards run `--lib --bins --tests`. The warm build left out the
integration test executables the shards then build, and cargo warned
`unused dependency vectorcraft-testkit` for apps/vectorcraft-cli, whose
only use is in tests/it.
The warm build now selects the same targets as the test shards, through
one `TARGETS` list that both use.
- apps/vectorcraft-web: egui_extras moves to the wasm32 dependencies.
Its only use is src/web.rs, which builds only for wasm32, so cargo
reported it unused on native builds.
- apps/vectorcraft: drop the socket2 dev-dependency. Its loopback
tests left control_server in #8800 and nothing uses it now.
- xtask: the doc-test steps (`cargo xtask ci shard` and the workspace
doctests) leave out packages whose only library target is a cdylib,
dylib or staticlib. Cargo printed "doc tests are not supported for
crate type(s) `cdylib`" for vectorcraft-thumbnail-handler. Packages
without a library stay selected, so the shard keeps its features.
Warnings on the build host, before and after (cache warm shard
`cargo test -p vectorcraft-mcp -p vectorcraft -p vectorcraft-cli
-p vectorcraft-web -p xtask --lib --bins --no-run` on a fresh build, and
`cargo test -p vectorcraft-thumbnail-handler --doc`): 4 before, 1 after.
The one left is `vectorcraft-testkit` in apps/vectorcraft-cli: only the
integration tests use it, and the warm step builds only library and
binary tests.
Each ui-egui part ran its pinned tests with --test-threads 3 beside its
counted share with --test-threads 1. On the 4-CPU runners the pinned
tests finished in about 40 s, and the counted share of about 2,640 tests
then ran on one thread for 9 to 12 minutes (run 46267439238).
A part now runs its counted share and then its pinned tests, one after
the other, each with nextest's default thread count. The help F1 test
moves to part 1's pinned list, which leaves the two parts with closer
test totals.
vectorcraft-ui-egui's tests were one leg that set the pull request run's
length (33.2 min median over 20 runs: about 19 min compiling and 11.9 min
running 5,288 tests). The gate now has six legs. Shards 1 and 2 each
build vectorcraft-ui-egui's tests and run half of them with nextest's
count partition. Each part also runs its own pinned slow tests, so the
slowest tests do not land on one leg. Part 1 alone runs the doctests and
the i18n report, and `cargo xtask ci warm` builds the split once.
Before running, a part lists the tests and stops with an error when a
pinned test name no longer exists. The xtask shard tests check that
every test of a split runs on exactly one part.
The nightly signing policy and its preparation doc list the new job
names (`test N/6`).
`cargo xtask ci warm` builds only shard GATE_SHARD of GATE_SHARDS when the gate sets them, and
every shard when neither is set; one set without the other, a non-number, a count other than the
shard count, or a shard out of range is an error. ci.yml turns on the gate's `warm-split`, so
main's warm runs as five `cache warm <k>/5` legs and a `cache warm` leg that saves the entry.
The cold-cache cleanup waits for the split legs before it times the saving leg's start, and fails
when a split leg fails. The cache-prune watch and both jobs' timeouts cover a split leg followed
by the saving leg.
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.
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.
Every craft-libs crate moves from f762f98a to 81bca5c8e2 (craft-libs
main). The new rev adds the title bar's item gap, docking of part of a
collapsed column, the tool rail's footer rule, disabled accessibility
nodes that ignore actions, and built-in themes that load without a
cycle search. VectorCraft builds on it without other changes.
- Every craft-libs crate moves from 610c86792a to f762f98a (craft-libs
main), which adds the fixed corner-widget inset, the ruler corner's
plus, popover padding, and a native window's move recorded once.
- The status bar's Zoom field uses ZoomField::status_bar, so it draws
without an outline in the status bar's look.
- The Rotate View compass is placed in CanvasScrollbars::clear_of
instead of a copy of the scroll bars' sizes.
- The tools' corner-widget inset is public, and a test holds it equal
to CornerWidgets::INSET, the inset the canvas draws the widgets at.
Every storytold/craft-libs crate and the hayro, krilla and linesweeper
patches move from 51fcc3b041 to 610c86792a, the head of craft-libs main.
xtask pdf-deps expects the new rev.
The new apps/vectorcraft-thumbnail-handler crate builds
vectorcraft_thumbnail_handler.dll, a thumbnail handler (IThumbnailProvider
with IInitializeWithStream) for .vectorcraft, .drawcraft and .vctemplate
files. Explorer passes it the file's bytes. It writes them to a file in
%USERPROFILE%\AppData\LocalLow\VectorCraft\Thumbnails (the temp folder when
that can't be made), runs `vectorcraft-cli thumbnail --size N` from the DLL's
folder on that file, and returns the PNG as a top-down 32-bit bitmap with
premultiplied alpha, at most 1024 pixels on its longer side. A file larger
than 256 MiB, a failed run, or a run longer than 25 seconds returns an error,
and Explorer shows the file's icon. Explorer gives the handler the file's
bytes and not its path, so a linked image found only relative to the
document's folder shows the preview saved with it.
`regsvr32 vectorcraft_thumbnail_handler.dll` registers the handler for the
current user under HKCU\Software\Classes, and `regsvr32 /u` removes the class
key and each extension's ShellEx key that names it. The Windows packages do
not build, ship or register the DLL yet.
The COM code is Windows-only and has a module-scoped unsafe_code allowance.
The registry values, the stream limit, the PNG conversion and the
vectorcraft-cli run build on every system, and their tests run in CI.
The plug-in runtime keeps main's JavaScript plug-ins beside the web worker's module bytes and checked loads: a JavaScript plug-in's bundle is kept for the worker like a module, and load_checked loads it from its bundle.
In the gate leg that saves the dependency cache, craft-common-actions'
rust-cache action names a file in CRAFT_CACHE_UNITS, and its cache-trim
action keeps only the build units that file names. xtask wrote nothing
to it, so every warm leg logged "cache-trim: no unit record, so the
target directory stays as it is" and the saved entry kept the old
builds of every dependency still in Cargo.lock.
With CRAFT_CACHE_UNITS set, each cargo build of `cargo xtask ci warm`
runs with --message-format json-render-diagnostics. Cargo's JSON
messages go to the record, and diagnostics stay readable on stderr.
xtask records its own build first (cargo build -p xtask), since
`cargo xtask` builds it before xtask can record anything. Without the
variable the commands run as before.
All storytold/craft-libs crates and the hayro, krilla and linesweeper
patches move from b0d422cf0c to 51fcc3b041, the head of craft-libs main
(craft-libs#3718). craft-libs main now holds what was on next, so the
pin follows main as AGENTS.md rule 10 asks. The move brings the .cmx
writer (craft-libs#2807) and the macOS Save sheet Format menu
(craft-libs#3565). xtask pdf-deps expects the new rev.
The egui patches move from b15ffe9bfc to 932a73b285, the egui rev
craft-libs main pins: craft-ui-contract at 51fcc3b041 calls
Context::set_pointer_move_gate and Context::widgets_at, which
storytold/egui adds after b15ffe9bfc.
App changes the move needs:
- AppShell's title, options, status and hint slots take a version
function (craft-libs c417cd3050). Each passes |_| None, so every slot
still runs in every pass.
- PartResult::hover_pos is private (craft-libs 27e8a77145). The track
cube reads the pointer through Cx::hover_pos, which is None when the
cube is not hovered, as the old filter on hovered was.
- craft_dxf::write_binary returns a Result (craft-libs#3347, binary DXF
writing fails on an invalid integer). The binary DXF import test
unwraps it.
Test changes the move needs:
- An inline slider field now shows its slider before its number field,
and both carry the field's name (craft-libs#3553). The panel harness
types into the number field, the part that takes typing, and the
plug-in effect test reads the number field's value.
- A painted tool cursor's marks use the overlay.cursor token (craft-libs
a830ff539b), so the cursor test looks for that color.
- The Keyboard Shortcuts area tabs are named by their visible label,
"Show:" (craft-libs 702cb295c6).
- The gradient stop's color mode menu now opens over part of the stop
editor. The test clicks the Web Color Sliders row where it lies
outside the editor, as before, and keeps the same checks.
Cargo.lock adds what the new craft-libs crates depend on
(craft-control-protocol, craft-font-os-windows, ed25519-dalek and its
dependencies, jpeg-encoder 0.7.1 for craft-image-codecs).
* 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
* 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.
* 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.
More of the port looks like production's VectorCraft. VectorCraft moves to craft-libs `next` at a4b6d3b6c (the pdf-deps check with it) and switches on the framework's new opt-in looks.
- **Highlights:** every icon button that is on shows production's highlight, the pressed fill (`#633f3e` in Medium Dark, production's `tool_active`) with no accent edge (`ActiveLook::Pressed` at the root, and on the tool rail). This covers the current tool, Snap, Guides and the panel toggles.
- **Paint chips:** Fill and Stroke chips show the dropdown arrow. The task bar's chips are compact, and the tool rail's colour chips are swatches.
- **Contextual Task Bar:** one rounded grip bar, members an item gap apart, and the bar hangs clear of the selection handles.
- **Properties:** the object-kind title is quiet (muted caption). "Ellipse Properties:" and the Align and Pathfinder sub-headings are production's sub-headings (normal ink, no rule). The Align panel draws production's divider above its options.
- **Labels:** glyph captions take a form's colon (X:, Y:, W:, H:); "#" and the colour channel letters stay bare.
- **Dock:** every panel group shows the panel menu button with the ≡ icon.
- **Status bar:** the help icon is production's 16 px.
Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean. The active tool's fill was sampled from an offscreen render of the whole window: `#633f3e`, production's.
Fixes main's two red Linux gate legs.
- **Leg 5 (`pdf-deps`)**: `xtask/src/pdf_deps.rs` pinned craft-libs `945e849cb`, the revision before #9211, so the check failed once the app moved to `3238a3eca`. It now expects `3238a3eca`; `cargo xtask pdf-deps` passes.
- **Leg 1 (`original_editor::tests`)**: the test helper `editor()` called `set_mode` on a copy of the file's permissions and never applied it, so on Linux the stand-in editor had no executable bit and the platform's application check (craft-libs `platform/src/open.rs`, `mode() & 0o111 != 0`) refused it. `native_choice_commits_persists_cancels_and_resets` and `original_editor_async_picker_validates_and_commits_only_on_ok` failed on Linux only; this leg was already red before the re-pin. The helper now writes the mode with `set_permissions`.
Checks: `original_editor` tests pass on Windows (6/6; the Linux path is what this PR's CI checks); clippy (`vectorcraft-ui-egui`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
VectorCraft moves to craft-libs `next` at 3238a3eca (from bf62d509f), and follows the framework's changes so production's behaviour holds.
Framework fixes this brings in (all on `next`):
- Save for Web's hosted answers, Tab out of selectable label text, Escape in text fields, a focused stop in a closing layer losing the focus, grid labels beside a menu.
- A toolbar button's command runs as a command (clicking the active Blend tool finishes the blend again).
- A Page key bound to a command runs it ahead of the canvas page scroll.
- A command no longer closes and reopens a dock panel's flyout, so Cmd+A in the Artboards flyout selects every artboard.
- Presses in Export for Screens land on the control under them again (a tile grid measured too narrow clipped the pane).
- VectorCraft Modern's selected, pressed and disabled colours take production's values.
App changes that follow the framework:
- Properties dialogs pass their key to `PropertiesDialog::new`; hosted parameter dialogs take footer presses through `take_action`; the Print dialog reads and sets the Settings destination; job queues keep the default order; Preferences custom rows report changes; Home's Learn section uses `StartScreen::app_section`; `ui.screenshot` replies with `ScreenshotParams`; the Appearance list copies on Alt drag through `ReorderRule::copy_with`; the Character panel gives the font picker its settings; Zoom with Mouse Wheel picks the canvas `WheelScheme`; Recovery reads the `RecoveryChoice` answer.
- The document canvas takes arrows with every modifier (Alt+arrow copies, Shift+arrow nudges ten), and an arrow bound to an app command runs it.
- The toolbar drawer takes a tool dragged off its slot (`RemoveFrom`, `MoveFrom`).
- Number fields show percentages whole ("60 %") and lengths to a thousandth of a point, as production did (`NumberPrecision::Measured`).
Tests rewritten (assertions unchanged): the three file-drop tests run the pass the drop asks for; the Appearance Characters test clicks the link by role.
Checks: `vectorcraft-ui-egui` lib tests 3775 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
VectorCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (`next`; the framework side is storytold/craft-libs#2809), as PhotoCraft's did. The app keeps its engine, document model, file formats, commands and automation; its windows, panels, bars, dialogs and canvas are now built and driven by the framework: shell, docking and panels, hosted dialogs, keyboard, focus, IME and pointer routing, and theme tokens.
About 264,000 lines of VectorCraft's own egui UI code are removed and about 154,000 added. craft-libs is pinned at bf62d509f (in `next`), the egui fork at f5025284.
Tests that drove the old UI were rewritten against the port where only their premise changed, with their assertions kept. The UI tests still failing at merge, and their follow-ups, are listed in the pull request.