Commit Graph
596 Commits
Author SHA1 Message Date
dotCooCoo d7711e41bc Merge main into fix/prefs-dir-font-scans-own-root 2026-11-28 01:28:42 -08:00
.CooCoo 0b933e7a36 Merge pull request #9127 from dotCooCoo/feat/plugins-web-worker
Plug-ins: the web build checks plug-ins and runs filters in a Web Worker
2026-11-28 01:04:54 -08:00
.CooCoo 150998c32d Merge pull request #8990 from dotCooCoo/feat/web-stylus-wheel
Web: the Paintbrush records an airbrush pen's stylus wheel
2026-11-28 00:10:14 -08:00
.CooCoo c2b8d7ce75 Merge pull request #9822 from dotCooCoo/fix/automation-args-handshake
Tests: automation root tests wait for the app to exit, not for a 30 s deadline
2026-11-27 23:35:58 -08:00
dotCooCoo 689b44ff13 Web: the stylus wheel reads into the framework's pen source
main moved the pen input onto the craft UI framework's PenSource, which
queues each reading and pairs the readings with a frame's pointer moves.
The web build now writes one reading per move, coalesced positions
included, with the wheel from Pointer Events' tangentialPressure, in
place of the StylusFeed moves the branch used before. The wheel rules
are unchanged: 0 reads as no wheel until the pen reports another value,
and another pen, the other end, a canceled press or a pen that left the
hover range reads it afresh.

The canvas-side pairing (frame_moves, StylusFeed::set_move) is gone on
main, so the branch's two ui-egui tests for it are dropped; the
vectorcraft-web tests check the readings written for each move.
2026-11-27 23:15:28 -08:00
dotCooCoo 875f49fc8d Merge main into feat/plugins-web-worker
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.
2026-11-27 23:05:07 -08:00
.CooCoo f15b8fc2bb Merge pull request #9821 from dotCooCoo/fix/macos-clippy-dead-code
macOS: clippy -D warnings passes on the desktop app again
2026-11-27 22:19:42 -08:00
.CooCoo d9abaae27b Merge pull request #9805 from dotCooCoo/fix/issue-6310
Fix #6310: macOS Copy puts the PDF and SVG on the pasteboard
2026-11-27 21:44:21 -08:00
dotCooCoo fa7016fa68 Tests: an app that exits by the deadline passes when its output arrives later
exit_output stopped the binary and failed the test whenever a pipe's output
had not arrived by the 120 s deadline, even when the binary had already
exited and its readers were still delivering. It now checks the exit status
first: a binary that has exited gets 10 more seconds for its output, and only
a binary still running at the deadline is killed, reaped and reported.
2026-11-27 21:42:42 -08:00
.CooCoo b4fbaf9826 Merge pull request #9819 from dotCooCoo/fix/single-instance-test-handshakes
Single instance: hand-off tests no longer depend on how fast the machine is
2026-11-27 21:38:30 -08:00
.CooCoo a628629f7d Merge pull request #9857 from dotCooCoo/fix/file-locks-unlock-on-drop
Locks: dropping a lock holder unlocks its file
2026-11-27 21:37:36 -08:00
.CooCoo 77a609eed6 Merge pull request #9820 from dotCooCoo/chore/craft-libs-pin-51fcc3b0
Dependencies: take every craft-libs crate from craft-libs main at 51fcc3b041
2026-11-27 21:35:36 -08:00
dotCooCoo 74f5b8c1bd Nightly: a session that fails to start unlocks its lease
Session::begin locked the lease and could then return an error while
checking or writing the record, before a Session existed. On those
paths the lease file was dropped without unlocking, so a child process
that was starting kept the lock held.

The lock now lives in a Lease guard that unlocks on drop, and it covers
the ended session and both error paths. New tests hold a copy of the
handle while the record path is a folder and while the record cannot be
written.
2026-11-27 21:25:32 -08:00
dotCooCoo b3917f89e8 Locks: dropping a lock holder unlocks its file
The plug-in store turn, the Data Recovery area hold, the script grants
lock and the hang report file each released their file lock only by
closing the file. The lock stays held while any copy of the handle is
open, and a child process that any thread starts holds a copy until it
runs its program. While one was starting, the next turn on the plug-in
store waited, an app found its own recovery area busy, a grants change
timed out, and the next launch left a hang report alone.

Each holder now unlocks the file when it is dropped, as #9837 does for
the nightly session and the GPU start file. The engine's three locks
share one type, `store::LockedFile`. A left hang report that a launch
locks to read is held the same way.

Each new test keeps a copy of the handle open, drops the holder and
takes the lock again.
2026-11-27 18:58:40 -08:00
dotCooCoo b3d19b5760 Clipboard: the Wayland pipe tests send with no idle limit
a_read_stops_at_its_limit and a_copys_data_is_sent_through_the_pipe_and_closed
send more than a pipe holds through a default `Sends`, whose idle limit is
the app's 2 s `IDLE_WAIT`. When the test thread took more than 2 s between
reads, the send gave up: the first test then got the bytes sent so far
instead of the "larger than 2 MiB" error, and the second got only part of
the data.

Both tests now send through `Sends { idle: LONG, .. }`, as
pastes_that_read_nothing_hold_a_few_sends_at_most does, so each send ends
when the reader takes the data or closes the pipe. The second test still
checks that a default `Sends` uses `IDLE_WAIT`. Every assertion is kept.
2026-11-27 18:00:50 -08:00
dotCooCoo ee3e7611b4 GPU: an ended start unlocks the start file
The start file's lock had the same fault as the nightly lease: it was
freed only when the file was closed, so a child process that held a
copy of the handle until it ran its program kept the file locked. The
next start then took the file for another copy of the app that was
starting, and did not read or write it. Under cargo test,
gpu::tests::a_damaged_or_unreadable_start_file_is_ignored failed this
way while the installed-root test started its child process.

StartFile now unlocks the file when it is dropped, and a new test holds
a copy of the file's handle while a start ends. The test guard from
e94b74eea4 (by mockydevs), whose write side was removed in #8800, kept
only its read side and no longer stopped any test from starting a
program. The unlock replaces it, so the guard has been removed.
2026-11-27 16:54:40 -08:00
dotCooCoo 37567e8c5a Nightly: an ended session unlocks its lease
A nightly session's lease is a file lock, which the system frees only
when every copy of its handle is closed or the lock is unlocked. A
child process that any thread starts holds a copy of every handle until
it runs its program. When a session ended during that time, by its
controlled return or by the caught panic that frees the lease for the
successor a graphics restart starts, the next launch found the lease
held and kept no session record. Under cargo test, three
nightly_session tests failed this way while the installed-root test
started its child process.

Session now unlocks the lease when it is dropped. A new test holds a
copy of the lease's handle while a session completes and while one is
dropped, and the next session takes the lease each time.
2026-11-27 16:46:36 -08:00
dotCooCoo 51302b2de0 Tests: the installed profile root test runs in its own process
profile::tests::the_installed_root_is_used_once_and_must_be_absolute
(from #9233) installs the launch's profile root, which a OnceLock holds
for the rest of the process. Under cargo test the other tests of the
vectorcraft and vectorcraft-cli binaries run on threads of that process
and read the settings folder from it. When the root was installed while
prefs_dir::tests::the_font_scans_read_the_fonts_folder_next_to_the_settings
ran, the Fonts folder it had set and the settings folder it read next
differed, and the test failed. nextest runs each test in its own
process, so CI passed it.

The installed-root test now runs again in a child process of the test
binary, as crates/engine/src/tests.rs's in_own_process does, and the
font test asserts that no root was installed beside it. With one test
thread the font test runs after the installed-root test, so without
the change it fails on every run.
2026-11-27 16:29:40 -08:00
dotCooCoo 310f400b75 Tests: automation root tests wait for the app to exit, not for a 30 s deadline
The automation_args tests polled try_wait every 10 ms and failed when the
binary had not exited within 30 seconds, so a slow start on a loaded
machine failed a correct build. They now read stdout and stderr until both
pipes close, which happens when the binary exits, through the same helper
the help tests used, now moved to tests/it/main.rs as exit_output. The
helper's deadline only stops a binary that is still running.

The tests also remove DISPLAY, WAYLAND_DISPLAY and WAYLAND_SOCKET, as the
help tests do, so on Linux a binary that gets past argument parsing exits
with a display error that the exact stderr check rejects.
2026-11-27 16:04:28 -08:00
dotCooCoo 8aa8c22633 macOS: clippy -D warnings passes on the desktop app again
`cargo clippy -p vectorcraft --all-targets -- -D warnings` failed on
macOS with three dead-code errors:

- `launch_profile::child_args` and `child_args_for` have one caller,
  `single_instance`, which is not built on macOS. They and their two
  tests are now `cfg(not(target_os = "macos"))`, the same as that module.
- `app.rs`'s `discard_marked_text` lost its caller in #8800, where the
  craft UI framework took over IME routing. The framework's window layer
  discards the input method's marked text on macOS itself, so the app's
  copy is removed, along with the `NSTextInputContext` feature of
  `objc2-app-kit` that only it used.
2026-11-27 16:04:16 -08:00
dotCooCoo a0d922c0f2 Dependencies: take every craft-libs crate from craft-libs main at 51fcc3b041
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).
2026-11-27 15:53:24 -08:00
dotCooCoo a202ae3468 Single instance: hand-off tests no longer depend on how fast the machine is
The hand-off tests used the app's own waits: 500 ms to connect, 2 s for
the running app and 5 s for a launch. On a busy machine an exchange can
take longer, and then forward() fails, or a refusal test passes because a
wait ran out rather than because the app refused the message.

listen(), forward() and start_at() now take the waits as a Timeouts
value; the app passes the same 500 ms, 2 s and 5 s as before. The tests
pass a 60 s guard that only stops a hung test, wait for each delivery
on the channel, and check that each refused exchange ended with an
error from the other side, not with a wait that ran out.

With a 6 s stall added to receive(), the 10 single_instance tests pass;
with the stall and the app's own waits, four of them fail.
2026-11-27 15:41:49 -08:00
dotCooCoo a996a37bec Clipboard: tests wait for each read's answer instead of a time limit
Nine clipboard tests passed only when the test worker answered within
the app's own read limits (2 s for text and file lists, 10 s for a
paste's bitmap): on a loaded machine a slow answer failed them.

The read limits are now a `Waits` value that each `Loads` carries, set
to `Waits::APP` (`LOAD_WAIT`, `IMAGE_WAIT`) where the app opens its
clipboard. A read kept for a later paste takes the same limits, and
the core protocol's paste and reads use them instead of the constants.
Tests pass `Waits::UNTIL_ANSWERED`, so each wait ends when the answer
comes, the owner is released or the worker stops. A wait past the
clock's range has no limit. The values the app uses are unchanged.

The tests' own 5 s and 600 s waits are also unbounded now. Every
assertion is kept.
2026-11-27 15:14:56 -08:00
dotCooCoo ecb097d084 Fix #6310: macOS Copy puts the PDF and SVG on the pasteboard
On macOS, Copy and Cut put one format on the pasteboard: the text (a
type-only copy's text, or the SVG markup with Include SVG Code), else
the picture as TIFF. The PDF that the Clipboard Handling PDF setting
makes and the SVG that Include SVG Code makes were dropped, so apps
that paste vector art got only a TIFF or plain text.

After arboard writes the text or the picture, the other formats are
now added to the same pasteboard item: the SVG as public.svg-image,
the PDF under the system's PDF type and the PNG as public.png, in the
order Copy offers them. A type that can't be added is logged, and
what arboard wrote still carries the copy. This follows craft-libs'
offer/macos.rs. The ownership check still compares the text or
picture arboard wrote.

The Clipboard Handling sentence for PDF now names Windows and macOS.
2026-11-27 13:33:34 -08:00
dotCooCoo dc333ada97 Merge main into feat/plugins-web-worker
Worker completion preserves unapplied typing and discards stale output.
2026-11-26 10:21:21 -08:00
dotCooCoo 8d9832ca9b Merge main into feat/scripts-startup-scripts 2026-11-26 09:08:48 -08:00
BFlat f040538a39 Merge pull request #9007 from dotCooCoo/feat/windows-stylus-wheel-wintab
Windows: the Paintbrush reads an airbrush pen's stylus wheel through Wintab
2026-11-26 23:20:15 +07:00
dotCooCoo e015b20396 Merge main into feat/scripts-startup-scripts 2026-11-26 07:31:10 -08:00
BFlat 2c1aebf808 Merge pull request #9054 from dotCooCoo/fix/plugin-grants-integrity
Plug-ins: an edited grants file grants nothing, and its plug-ins ask again
2026-11-26 17:00:02 +07:00
dotCooCoo 3055ea5757 Merge main into feat/scripts-startup-scripts 2026-11-25 23:39:37 -08:00
dotCooCoo 5668a3428e Windows: a pen keeps its airbrush's wheel while another tablet's cursor is read
The pen that took the Wintab readings now reads the latest packet of its
own cursor whenever that cursor is still near the context, instead of
only when it is the one cursor read. Another tablet's airbrush moving
while the pen is held still no longer drops the pen's wheel.
2026-11-25 21:05:33 -08:00
dotCooCoo 5ff353a23b Windows: the Wintab reader keeps each pen's end and asks a failed cursor query again
- Each pen's end is kept by its pointer id, so only the same pen turning over
  starts the readings afresh; another pen's message with the other end does not.
- A cursor whose WTInfoW query failed is asked again 2 s of the message clock
  later, and only a cursor the driver describes without a wheel is cached as
  having none.
- Whether the app is active is asked again right before WTOpenW, after the
  close and WTInfoW calls before it.
- docs/target-app-parity.md: a pen first reads the wheel from a packet within
  200 ms of its message, then holds the readings until they start afresh.
2026-11-25 20:47:35 -08:00
dotCooCoo cb1361c889 Merge main into feat/plugins-web-worker 2026-11-25 18:45:04 -08:00
dotCooCoo 0bda609041 Merge main into feat/windows-stylus-wheel-wintab 2026-11-25 17:56:18 -08:00
dotCooCoo 7418753350 Windows: the Wintab context opens only while the tool uses the wheel
The Paintbrush with a brush whose Size or Width is on Stylus Wheel with
a range the wheel can change, or the Eraser with a value on Stylus Wheel
and a variation above 0, uses the wheel. The app asks the active tool
(Tool::reads_wheel) once a frame and tells the host when the answer
changes (Services::stylus_wheel). Until a tool uses the wheel, a pen
message loads no Wintab32.dll, installs no hook, subclasses no window
and opens no context; when it stops, the context closes.
2026-11-25 17:53:48 -08:00
dotCooCoo b19905b054 Merge main into fix/issue-9051 2026-11-25 14:55:35 -08:00
dotCooCoo 0e701ffc1a Merge main into feat/plugins-web-worker 2026-11-25 14:21:03 -08:00
dotCooCoo 950602cb84 Merge main into fix/plugin-grants-integrity 2026-11-25 13:57:17 -08:00
dotCooCoo 2df812df41 Merge main into feat/scripts-startup-scripts 2026-11-25 13:49:06 -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 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
dotCooCoo f906a0f814 Merge main into feat/scripts-startup-scripts 2026-11-25 09:16:13 -08: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 91cba3db04 Merge main into feat/windows-stylus-wheel-wintab
# Conflicts:
#	docs/target-app-parity.md
2026-11-25 05:10:33 -08:00
BFlat 62eff34cc6 Merge pull request #9069 from dotCooCoo/feat/plugins-load-on-workers
Plug-ins: stored and folder plug-ins load on worker threads while the window shows
2026-11-25 19:32:48 +07:00
Dylan M. Taylor 8b0b808857 packaging(linux): support co-installable nightly packages (#9233)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

gate test shard 1/5 (and the Sonar scan that reads its coverage) fails on crates/ui-egui/src/doc_windows/tests.rs `a_document_made_current_in_presentation_mode_comes_to_the_front_after_it`, which main fails too (CI run 45581083304); this PR touches no ui-egui code.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-25 06:01:37 -06:00
dotCooCoo 9d225ba091 Merge main into feat/plugins-load-on-workers
The Safe Mode choice after a stopped launch moves to main's dialog host and keeps listing every
plug-in that was loading: one name in the sentence, or the list with "Disable Listed Plug-ins and
Continue". Automation requests wait in the queue while plug-ins load, and one past its deadline is
answered as expired. File > Open and opening a file still wait for the plug-ins still loading.
2026-11-24 23:31:07 -08:00
HassanKhan baeef6db80 GPU start: try the adapters that crashed an earlier start when no other is left
A start ended before its first frame leaves its adapter recorded as
crashed in graphics-start.json, and the next start leaves that adapter
out. A start ended from outside (a --control session terminated early)
looks the same as a crash in the driver, so on a machine with one GPU,
such as an Apple Silicon Mac, the next start had no adapter left and
failed with "no graphics adapter can show the window".

The selector now tries the adapters that crashed an earlier start
again, with a warning in the log, when leaving them out would leave
none. Adapters a restart left out after they failed in this run of the
app stay left out, and with another adapter to try, the one that
crashed is still left out.

Fixes #9183
2026-11-25 12:05:11 +05:00
BFlat 461e758fe7 Look: Home, the dock frame and the panels' spacing as production 0.24.1 draws them (#9276)
* 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.
2026-11-25 13:29:00 +07:00
dotCooCoo ee947082ed Merge main into fix/plugin-grants-integrity 2026-11-24 19:26:24 -08:00