Commit Graph
647 Commits
Author SHA1 Message Date
.CooCoo 90e08df23f Merge pull request #10312 from dotCooCoo/fix/ui-frame-stability
Menus: a menu opens under its title on a monitor beside a portrait one
2026-11-30 15:02:38 -08:00
.CooCoo f4f42de9d8 Merge pull request #10239 from dotCooCoo/fix/plugins-whole-tree-reads
CI: declare the files each crate reads in other crates, for test selection
2026-11-30 14:05:36 -08:00
.CooCoo b470a4b65a Merge pull request #10130 from dotCooCoo/fix/wayland-pinch-zoom
Canvas: a touchpad pinch zooms on native Wayland
2026-11-30 12:38:20 -08:00
dotCooCoo 58923e0d78 Menus: a menu opens under its title on a monitor beside a portrait one
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).
2026-11-30 12:21:21 -08:00
.CooCoo b95ea7d0ce Merge pull request #10287 from dotCooCoo/fix/xwayland-tablet-stylus
Linux: the log says why a pen's window stays on Wayland, and names the pens XWayland lists
2026-11-30 12:20:06 -08:00
.CooCoo cbfeaab604 Merge pull request #10265 from dotCooCoo/fix/issue-2654
Graphics: start on Mesa's software renderer when no adapter can show the window
2026-11-30 12:01:10 -08:00
dotCooCoo ab4e56934b Linux: the log says why a pen's window stays on Wayland, and names the pens XWayland lists
Part of #5622. On a Wayland session winit 0.30 receives no input from a
pen, so the app opens its window through XWayland when a pen is attached
(#4967). When it did not, the log said nothing, and a report could not
tell a pen that was not found from a session with no X display.

- On a Wayland session the log now says why the window opens on Wayland:
  no pen in /proc/bus/input/devices, the device list could not be read,
  VECTORCRAFT_NATIVE_WAYLAND is set, or there is no X display (DISPLAY is
  unset, as in the Flatpak, which has --socket=fallback-x11). The
  pen-found line names the pen, and the missing-libraries warning no
  longer says Linux Display Server is X11 when a pen chose XWayland.
- Under X11 the tablet reader logs the pens the X server lists (for
  example XWayland's "xwayland-tablet stylus:16"), again when that list
  changes, and the first event from each pen.
- docs/development.md lists the new log lines, the Flatpak override that
  gives it an X display, and that GDK_BACKEND=x11 does not move the
  window to XWayland.
2026-11-30 07:48:08 -08:00
dotCooCoo 0b3cf56b81 Graphics: closing the window after a lost device no longer panics
After the graphics device is lost, a frame the device could not present
stays acquired by the window's surface. When the window closed, eframe
released the surface, and wgpu's Vulkan backend panicked with "Trying to
destroy a SwapchainAcquireSemaphore that is still in use by a
SurfaceTexture" (gfx-rs/wgpu#9277), so the app stopped with an error.

GraphicsLoss now remembers that a loss happened after the frame handled
the report. When the window closes after a loss, the process ends in
on_exit once the app has saved what it keeps on quitting, before the
window's graphics are torn down, on every platform. This is the exit the
macOS accessibility quit already takes (#661); a loss during start-up
still goes to the adapter restart (#651).

Fixes #6374
2026-11-30 06:59:34 -08:00
dotCooCoo 83a8e775d4 Graphics: start on Mesa's software renderer when no adapter can show the window
Part of #2654. On Linux and the BSDs, when no graphics adapter could
show the window (no wgpu backend started, or the restarts left no
adapter), the app ended. It now starts once more with
LIBGL_ALWAYS_SOFTWARE=1 and VECTORCRAFT_GPU_SOFTWARE=1 and says in the
status bar that it draws on the CPU. When that start also fails, or on
Windows and macOS, or with WGPU_BACKEND, WGPU_ADAPTER_NAME or
LIBGL_ALWAYS_SOFTWARE set, the error names the backends the driver
needs.

wgpu draws with Vulkan, OpenGL 3.3 or OpenGL ES 3.0. Intel's Ironlake
graphics (8086:0046) has OpenGL 2.1 alone, so the window's surface
failed with "Failed to create surface for any enabled backend: {}"
before any adapter was listed, and gpu::finish restarted only without
an adapter that had been picked.
2026-11-30 06:34:14 -08:00
dotCooCoo 506733c3b6 Merge main into fix/wayland-pinch-zoom 2026-11-30 05:01:07 -08:00
FredApps 68dbab8b90 Merge pull request #10236 from storytold/fix/vectorcraft-desktop-interactions
Restore desktop saving, Hand panning and font picker space
2026-11-30 13:24:15 +01:00
Codex 847e407ab6 Honor pre-refactor window preferences and preserve Hand placement clicks 2026-11-30 12:16:39 +01:00
Codex 99e8655ef6 Restore the main window on startup and enlarge tool rail icons 2026-11-30 12:09:59 +01:00
dotCooCoo 41ab3908ef Dependencies: craft-libs moves to 2680a3b3f and egui to 07c20531
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.
2026-11-30 02:52:53 -08:00
dotCooCoo dcdbd3cc1b CI: declare the files each crate reads in other crates, for test selection
Test selection in the shared gate (`select-tests`) runs the tests of the
crates a change reaches. A crate that compiles or reads another crate's
files lists them under `[package.metadata.craft]` in its Cargo.toml:

- vectorcraft-plugins sets `reads-every-member = true`, because
  `tests/grant_sites.rs` reads the sources of every crate.
- vectorcraft-cli, vectorcraft-affinity, vectorcraft-engine,
  vectorcraft-mcp, vectorcraft-ui-egui and xtask list the files they
  compile through `#[path]` or read with `include_str!`/`include_bytes!`
  or from `CARGO_MANIFEST_DIR`.

Cargo ignores this table. Only the gate's selection step reads it, and that
step fails when a read is missing from it.
2026-11-30 02:38:02 -08:00
Codex 1937db57bf Restore native save dialogs, selected Hand panning and font list space 2026-11-30 11:33:11 +01:00
dotCooCoo 32a5fef78d Layers: a selection change keeps the panel's row order
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.
2026-11-29 21:37:32 -08:00
dotCooCoo be62563b59 Merge main into fix/wayland-pinch-zoom 2026-11-29 21:30:45 -08:00
Dylan M. Taylor 970b34a727 feat(nightly): wire craft-nightly for self-isolated direct launch (#10088)
* feat(nightly): wire craft-nightly for self-isolated direct launch

* fix(nightly): answer plain version before resolving profile root

* test(nightly): retain exact version and saved profile coverage
2026-11-29 22:04:23 -05:00
dotCooCoo 6bde079ac9 Merge main into fix/wayland-pinch-zoom 2026-11-29 14:51:28 -08:00
FredApps 76948614e2 Merge pull request #10125 from storytold/fix/web-binaryen-133
Pin Binaryen 133 for the web release optimizer
2026-11-29 23:26:12 +01:00
dotCooCoo 8cd15651fb Canvas: a touchpad pinch zooms on native Wayland
Fixes #5981. The winit patch rev moves from a517b384 to 0dfcec0e
(storytold/winit craft/0.30.13, with storytold/winit#20), whose Wayland
backend binds zwp_pointer_gestures_v1 and reports a touchpad pinch and
rotation as PinchGesture and RotationGesture. egui-winit turns them into
Event::Zoom and Event::Rotate, which the canvas already reads, so a pinch
zooms about the pointer and a two-finger turn rotates the view. Before,
winit's Wayland backend never bound the protocol, so the gesture never
reached the app. X11 and XWayland still report no pinch.

The same winit range types an Alt + keypad code's character itself on
Windows (W36: the WM_CHAR after Alt's release becomes a key press with
that text). windows_alt_codes typed it too, which would type it twice, so
it now only takes the keypad digits typed with Alt out of the frame.

Docs: docs/hardware-parity.md (Trackpad row, Linux), docs/type-parity.md
(Alt + numeric-keypad codes row).
2026-11-29 12:33:55 -08:00
Codex c3c8a0a17a Pin Binaryen 133 for the web release optimizer 2026-11-29 21:28:17 +01:00
.CooCoo cdafb992f3 Merge pull request #10095 from dotCooCoo/ci/warnings-G2
CI: app manifests and cdylib doc tests no longer warn
2026-11-29 10:57:43 -08:00
dotCooCoo c2230ee61e CI: app manifests and doc tests no longer warn
- 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.
2026-11-29 09:25:58 -08:00
ruchirguitar a4659724f6 Merge main into feat/spell-check
Cargo.toml: #10049 moved craft-libs to 186a229c; the font store crates this
branch adds move with it, so every craft-libs crate stays at one rev.
2026-11-29 22:41:45 +05:30
FredApps 69e325e462 Pin craft-libs 186a229c for the VectorCraft release
Carry the upstream properties-dialog tab retention and layout fixes into the tested release pin. Retain the same egui revision and dependency graph.
2026-11-29 15:09:23 +01:00
FredApps 36ec203ef5 Pin current craft-libs and its matching egui revision 2026-11-29 12:44:11 +01:00
FredApps 6f3703bbab Advance shared PDF pin and honor Standard-mode Tab hiding
Keep the native and web craft-libs pins, Cargo.lock and PDF source checks on 57c8c8d4. Preserve the matching egui pin. Consult the shared Standard-mode chrome state for visibility and for show-panel requests; the dock already honors that state when drawing.
2026-11-29 08:38:26 +01:00
FredApps 0488c58928 Pin VectorCraft to current craft-libs and its matching egui
Keep native and web manifests, the lockfile, and the PDF source guard on the same craft-libs revision. Align the egui patch revision with craft-libs to retain one crate source.
2026-11-29 07:48:25 +01:00
dotCooCoo 3b119db0d4 Merge main into fix/craft-libs-869c970 2026-11-28 22:31:06 -08:00
dotCooCoo a88b5ebe7e Dependencies: craft-libs 869c9704d9
Moves every craft-libs crate to 869c9704d9. The Image Trace test reads the dimmed Stroke row's slider by role, since the row now holds a slider and a number box under one name.
2026-11-28 22:31:06 -08:00
.CooCoo 67f9daecb8 Merge pull request #9932 from makesomethingshit/fix/9814-web-file-drop-once
Web: route each dropped file once
2026-11-28 22:17:33 -08:00
dotCooCoo cc7d17d70c Dependencies: craft-libs 8bea6009f9
Moves every craft-libs crate from 07a8c471ed to craft-libs main at
8bea6009f9.
2026-11-28 20:49:41 -08:00
dotCooCoo 3496bbc6a2 Dependencies: craft-libs 07a8c471ed 2026-11-28 19:36:20 -08:00
ruchirguitar 8d3895d491 Merge main into feat/spell-check
Cargo.toml: main moved craft-libs to 610c8679; the font store crates this
branch adds move with it, so every craft-libs crate stays at one rev.
2026-11-29 08:29:24 +05:30
makesomethingshit 52553034cc Web tests: assert the browser drop counts without explicit panics 2026-11-29 11:42:06 +09:00
dotCooCoo 19fecfb749 Dependencies: craft-libs 81bca5c8e2
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.
2026-11-28 18:09:21 -08:00
makesomethingshit ed7a50825f Web: test that the shell takes each browser drop once 2026-11-29 10:54:13 +09:00
dotCooCoo 9ed5e06ff3 Dependencies: craft-libs f762f98a, with the status-bar zoom look and the compass clear of the scroll bars
- 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.
2026-11-28 17:12:28 -08:00
dotCooCoo a7373ec7d6 Dependencies: take every craft-libs crate from craft-libs main at 610c86792a
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.
2026-11-28 14:17:43 -08:00
Dylan M. Taylor 89a5b64170 ci(nightly): roll out signing pin, macOS docs layout, and profile reopen fix (#9935) 2026-11-28 14:37:16 -05:00
dotCooCoo c7893667de Fix #5311: on Wayland with no cursor theme, the tool cursor is not painted beside the system pointer
The framework port removed the check for a missing cursor theme. The
framework's cursor service paints a tool cursor only while the shell has
Caps::SYSTEM_CURSOR, and the shell always had it on Linux. On a Wayland
session where no cursor theme loads, winit cannot hide or set the
pointer, so the compositor's pointer stayed and the tool cursor was
painted next to it.

cursor_theme.rs gets theme_usable and theme_missing back, and
shell_caps leaves out Caps::SYSTEM_CURSOR on Wayland when no theme
loads. The window then shows the system pointer alone, as it did before
the port (#5734). Sessions with a cursor theme, X11 and XWayland are
unchanged.
2026-11-28 09:35:35 -08:00
ruchirguitarandClaude Opus 5.5 38da965223 Merge main into feat/spell-check
As asked in review. Cargo.toml: main moved craft-libs to 51fcc3b0; the font
store crates this branch adds move with it, so every craft-libs crate stays
at one rev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:54:53 +05:30
.CooCoo 8cdd897b23 Merge pull request #9909 from dotCooCoo/feat/windows-thumbnail-handler
Windows: Explorer shows thumbnails of VectorCraft documents
2026-11-28 08:03:20 -08:00
makesomethingshit 0f19b358b0 Web: route each dropped file once 2026-11-29 00:16:33 +09:00
dotCooCoo 6e165be442 Windows: thumbnail leaves OUT unchanged when it can't rename into place
`vectorcraft-cli thumbnail` wrote OUT with `write_atomic`, which copies
into the target when the folder refuses the temporary file or the
rename, so a run stopped by the time limit during that copy could leave
a partial PNG. It now writes a temporary file beside OUT and renames it
over OUT; when the rename fails it returns the error, removes its own
temporary file and leaves OUT unchanged. A file already at the
temporary name is left in place.

docs/target-app-parity.md names the DLL in the `regsvr32 /u` command.
2026-11-28 06:16:18 -08:00
dotCooCoo 845a6fd68a Windows: Explorer shows thumbnails of VectorCraft documents
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.
2026-11-28 03:59:10 -08:00
dotCooCoo bd833469ca Linux: thumbnail tests clean up their temp files
Each thumbnail test now writes its documents and PNGs into its own
tempfile::TempDir, which is removed when the test ends, instead of a
per-process folder in the temp folder that was never removed. The
progress-doc line now says the tests cover everything but the
20-second limit.
2026-11-28 03:47:13 -08:00
dotCooCoo b12c27e518 Linux: file managers show thumbnails of VectorCraft documents
The deb, rpm and tar.gz packages install
share/thumbnailers/ai.storyteller.vectorcraft.thumbnailer for
application/x-vectorcraft and application/x-vectorcraft-template. It runs
the new `vectorcraft-cli thumbnail --size N IN OUT`, which opens the
document as the app does and writes an 8-bit RGBA PNG of the first
artboard, N pixels (1 to 1024, default 256) on its longer side.

A file larger than 256 MiB, one that can't be opened, a document that
shows nothing, or a run longer than 20 seconds writes no PNG and exits
non-zero, so the file manager keeps the file's icon. The Nightly deb and
rpm leave the entry out, as they leave out the MIME package.

The render moves into vectorcraft_render::encode::first_artboard, which
the embedded native preview also uses.
2026-11-28 02:39:17 -08:00