Commit Graph
27122 Commits
Author SHA1 Message Date
dotCooCoo 01f331fe8c Merge main into fix/monitor-work-area-placement
DesktopWindows now passes the pointer, button, text and warp calls to
windows_stylus::ContactWindows, so a pen or a finger in contact still
counts as the primary button with the monitor listing in place.
2026-12-05 15:45:04 -08:00
.CooCoo fd470699e0 Merge pull request #10986 from dotCooCoo/fix/raster-effect-whole-object-reuse
Effects: a whole-object raster keeps its origin across whole-pixel pans of a centered view
2026-12-05 15:14:48 -08:00
.CooCoo 59e6a3e7fc Merge pull request #10977 from dotCooCoo/fix/tablet-pen-stroke-held
Windows: a pen or touch stroke stays down until the pen lifts
2026-12-05 15:13:48 -08:00
dotCooCoo 55df55941c Merge main into fix/monitor-work-area-placement 2026-12-05 15:12:41 -08:00
dotCooCoo b3b71e0a60 Merge main into fix/tablet-pen-stroke-held 2026-12-05 15:11:39 -08:00
.CooCoo 4219586a9e Merge pull request #10985 from dotCooCoo/fix/main-freebsd-engine-tests
Main: FreeBSD engine tests clash in one process (shared events plug-ins, shared fixture folder)
2026-12-05 15:04:10 -08:00
.CooCoo 45222a5d52 Merge pull request #10955 from dotCooCoo/fix/stroke-weight-draft-target
Stroke: drop an unfinished value when the stroke it edits changes
2026-12-05 14:54:59 -08:00
.CooCoo 629a706598 Merge pull request #10994 from dotCooCoo/fix/arrowhead-bounds-and-fade-seams
Canvas: arrowhead bounds follow the painted head, and the pasteboard fade has no seams
2026-12-05 14:52:45 -08:00
.CooCoo d149d894b5 Merge pull request #10992 from dotCooCoo/fix/issue-10271
Fix #10271: square swatches, palette-style floating groups and black and white drawing pointers
2026-12-05 14:52:38 -08:00
.CooCoo 06b6c484e9 Merge pull request #10990 from dotCooCoo/feat/width-profile-reorder
Width profiles: reorder the Profile list
2026-12-05 14:52:31 -08:00
.CooCoo c1e588ad8c Merge pull request #10987 from dotCooCoo/fix/windows-pen-zero-pressure-ends
Fix #10231: a Windows pen stroke starts and ends at the pressure the pen reports
2026-12-05 14:52:22 -08:00
.CooCoo bb2cb2381c Merge pull request #10980 from dotCooCoo/fix/effect-gallery-layout
Effect Gallery: preview, filter folders and settings side by side
2026-12-05 14:52:15 -08:00
.CooCoo 745ad1c10d Merge pull request #10999 from dotCooCoo/fix/restore-document-font-hinting
Fonts: text is hinted again, with skrifa taken from the craft-libs pin
2026-12-05 14:52:07 -08:00
.CooCoo 977a0e7c2a Merge pull request #10996 from dotCooCoo/fix/vectorcraft-open-links
Links: the desktop app opens links through the shared link opener, and written files and Linux links still open
2026-12-05 14:51:59 -08:00
.CooCoo a7a26c0fc9 Merge pull request #10988 from dotCooCoo/chore/craft-libs-pin-5489
Dependencies: craft-libs pin to main with #5489, #5466 and #5024, and their workarounds removed
2026-12-05 14:51:52 -08:00
.CooCoo e38ca45bac Merge pull request #10965 from dotCooCoo/fix/sonarcloud-newest-main
CI: analyze main in SonarCloud only at the nightly's commit
2026-12-05 14:48:43 -08:00
.CooCoo 303aa166ab Merge pull request #10997 from dotCooCoo/fix/cold-cache-drops-integration-tests
CI: keep integration test executables out of the gate's crates cache
2026-12-05 14:48:38 -08:00
.CooCoo 44403b7b5e Merge pull request #10983 from dotCooCoo/chore/unreached-allow-example-plugin
CI: unreached-rs skips the standalone example panel plug-in
2026-12-05 14:48:33 -08:00
.CooCoo 7da5c39148 Merge pull request #10930 from dotCooCoo/fix/dxf-scaled-block-dashes
DXF/DWG import: scaled block inserts scale their dashes and polyline widths
2026-12-05 14:39:47 -08:00
.CooCoo ff3fd73ddb Merge pull request #10944 from dotCooCoo/fix/save-metadata-only-change
Fix #10734: Save asks about a changed file only when its bytes changed
2026-12-05 14:37:41 -08:00
.CooCoo 3a16048d36 Merge pull request #10960 from dotCooCoo/fix/anchor-marks-move-translate
Canvas: a drag moves the kept anchor marks mesh instead of tessellating it
2026-12-05 14:37:17 -08:00
dotCooCoo 82dd6df8b6 Width profiles: deleting a profile clears an order that is back to the default
Deleting a saved profile kept only the stored ids, so a profile saved after
the last move was missing from the order passed to set_profile_order and the
default order stayed stored. Delete now builds the whole list as it shows and
stores it only when it differs from the default.
2026-12-05 14:36:00 -08:00
.CooCoo 52c071ac3a Merge pull request #10979 from dotCooCoo/fix/startup-keymap-menu-cache
Menus: keep the shortcut catalog when a Scripts read leaves its rows as they were
2026-12-05 14:34:36 -08:00
dotCooCoo 2c0c164cd9 Merge main into fix/cold-cache-drops-integration-tests 2026-12-05 14:18:59 -08:00
dotCooCoo 8faf2a10f2 CI: keep integration test executables out of the gate's crates cache
The gate's `build` job builds the integration tests without recording
their units, so the trim before the cache save was meant to drop them.
actions/cache-trim keeps every unrecorded unit built during the job, so
a cold main build saved all of them: a 9.68 GB gate-crates entry, over
the repository's 10 GB cache budget, which was then evicted and left
every following build cold.

`cargo xtask ci archive` now collects the unit directories of the
integration test executables those builds made and deletes them once
the shard archives are written, in a leg that saves the cache. Units
the record names stay, and a unit that cannot be deleted is named in a
warning. The shards run the executables from their archives, and the
doctests that follow do not use them.
2026-12-05 14:18:42 -08:00
.CooCoo 5ac4a390a9 Merge pull request #10968 from dotCooCoo/feat/color-palette-strip
Swatches: a Swatch Strip panel of one-click color chips that docks along any edge
2026-12-05 14:14:55 -08:00
dotCooCoo f5918495b3 Links: the desktop app opens links through the shared link opener
The main window's UI runtime now gets a link opener (InstallSpec::open_links,
craft-libs #5083), which takes every http, https and mailto link the app asks
to open (Help menu, app bar Discord button, Home and About links, credits, the
updater, an object's URL) and starts the system handler once per request.
eframe's `links` feature, which opened them before, is removed.

The runtime's opener drops every other scheme, including the file: URLs of
View PDF after Saving and Show in Browser in Save for Web and SVG Options. The
app now hands those to a new desktop service, Services::open_file_url, which
opens them in the default web browser with the webbrowser crate, as eframe's
`links` feature did. Without the service (the web build) they go to egui as
before.

On Linux and the BSDs the link opener runs xdg-open with the URL as its only
argument. craft-libs' open_external runs `xdg-open -- <url>`, and xdg-open
(xdg-utils 1.1.3, Ubuntu 24.04) exits with "unexpected option '--'" without
opening anything. A URL that starts with "-" is refused. macOS and Windows use
open_external.
2026-12-05 14:12:47 -08:00
dotCooCoo 1088f0894a Merge main into fix/restore-document-font-hinting 2026-12-05 14:11:57 -08:00
dotCooCoo 4fe7cbfbf6 Windows: list no monitors when their scales differ
The framework finds the monitor a palette window is on by testing the
window's top-left corner, in the window's own points, at each listed
monitor's scale. With a scale-1 primary listed before a scale-2
secondary, a palette on the secondary matched the primary, and its
popups were kept in the primary's work area, away from their opener.

The desktop window system now lists monitors only when they all share
one scale. On a desktop with mixed scales, popups stay within the span
of the app's windows and dialogs reopen where they were saved, as
before this branch.
2026-12-05 14:09:57 -08:00
.CooCoo 29927c6df2 Merge pull request #10975 from dotCooCoo/fix/ci-lint-cache
CI: build the tests without bundled fonts in the build job, not the lint leg
2026-12-05 14:09:21 -08:00
.CooCoo 1cf9dd82a3 Merge pull request #10978 from dotCooCoo/fix/font-scan-once
Fonts: the startup font scan lists the installed fonts once instead of twice
2026-12-05 13:55:54 -08:00
dotCooCoo 65193440bc Fonts: text is hinted again, with skrifa taken from the craft-libs pin
adopt_context turned egui's font hinting off in both themes of every
context it adopted (ui_fonts::hinting_off), because skrifa 0.44's
automatic hinter never finished a tall narrow Hebrew letter in a face
without hinting instructions and the font list stopped responding.

craft-libs#5222 merged the blue-zone exit into craft-libs vendor/skrifa,
and the craft-libs pin holds it. The skrifa entry in [patch.crates-io]
now takes skrifa 0.44 from the pinned craft-libs rev (f9e5cecc9c)
instead of the pull request's commit (37d0532f42); vendor/skrifa is the
same at both revs. hinting_off and its call are removed, so interface
text and the font list and picker samples are hinted as egui does by
default. Type on the canvas is drawn from its own outlines and does not
change.

a_face_without_hinting_instructions_draws_its_sample now checks that a
context the app adopts hints text in its global, light and dark styles,
and still draws U+05D1 from a face without instructions.
2026-12-05 13:55:46 -08:00
dotCooCoo 03041d987d Merge main into fix/monitor-work-area-placement 2026-12-05 13:53:24 -08:00
dotCooCoo 4438495940 Merge main into fix/arrowhead-bounds-and-fade-seams 2026-12-05 13:46:17 -08:00
dotCooCooandFredApps 777e0be488 Canvas: arrowhead bounds follow the painted head, and the pasteboard fade has no seams
The visual bounds of a stroke with arrowheads added a square around each
end point, as wide as the head's reach. With the arrowhead's align set to
"Tip on the end point", the head lies back along the path, so the
selection box reached past the tip by the head's whole length, leaving
empty room in front of the arrow. The bounds now take the box of each
head's outline from the same geometry the canvas paints, so the box ends
at the tip. The arrowhead geometry moves from vectorcraft-effects to
vectorcraft-doc so that the bounds code can use it; vectorcraft-effects
re-exports the same items.

The fade outside the artboards filled each of its pieces on its own, and
each faded out along the edges it shares with the next, so thin lighter
lines ran from the artboard's corners to the edges of the canvas. The
pieces are now filled as one unfeathered mesh (Draw::data_fill_tiled).

Fixes #10221
Fixes #10225

Co-authored-by: FredApps <[email protected]>
2026-12-05 13:46:17 -08:00
dotCooCoo 1ecc70f959 Merge main into fix/stroke-weight-draft-target 2026-12-05 13:17:37 -08:00
dotCooCoo ec78213704 Merge main into fix/issue-10271 2026-12-05 13:15:01 -08:00
dotCooCoo c914f6963d DXF/DWG import: keep symbols apart only where their art differs
A block's symbol was looked up by its scale alone, so a placement whose
art the nesting limit cut short, or that left out a block placing one of
its ancestors, could hand that shortened art to a complete placement at
the same scale. The symbol key now also holds the depth where the
block's art reaches the nesting limit (counted under the ancestors it
places) and the ancestors it places within that limit.

The scale scan reuses a "yes" only while none of the blocks it went
into to reach the dashes is an ancestor, and keeps up to four of them;
it checks anonymous blocks with everything they inherit, as they are
drawn. Inserts on hidden layers are not followed. The new shape checks
have an import-wide work budget and a memory budget.
2026-12-05 13:15:01 -08:00
dotCooCooandFredApps 4fd10dff12 Fix #10271: square swatches, palette-style floating groups and black and white drawing pointers
The app's root settings now set three craft UI framework looks:

- SwatchCorners::Square: color swatches and the Fill and Stroke wells
  draw with square corners.
- FloatingGroupLook::Palette: floating panel groups and tool palettes
  have square corners and a small shadow.
- DrawingCursorLook::Monochrome: the Selection, Direct Selection and Hand
  pointers, the drawing crosshairs and the tool cursors draw in black and
  white in every color scheme, so they no longer take the theme's blue.

The cursor tests read the black tool marks, and the pen nib test samples
the 24-unit art that tool cursors now draw at. New tests check that a
swatch paints a square well, that floating groups take the palette frame,
and that the drawing pointers have no colored pixel in the Modern and
Classic schemes.

Carries #10274 by FredApps, with main merged in. The pen cursor artwork
from #10274 is not included: #10393 already redrew it on main.

Co-authored-by: FredApps <[email protected]>
2026-12-05 13:15:01 -08:00
dotCooCooandFredApps aae32d4650 Windows: dialogs and popups open on a connected monitor, clear of the taskbar
The desktop app passed the framework a window system that lists no
monitors, so a dialog such as Preferences reopened at its saved desktop
position without being fitted to any display, and palette popups had no
monitor to stay inside.

The app's window system now lists the monitors through winit, with each
monitor's work area on Windows (GetMonitorInfo), so a saved dialog that
no connected monitor shows comes back onto one with its title bar
reachable, and popups stay above the taskbar. A listing is reused for one
second and kept when winit stops on a display that went away while it
was listed. macOS lists no monitors, as before: winit gives each
display's position in that display's own scale, so displays with
different scales overlap. The main window's restore uses the same
listing.

Fixes #10230

Co-authored-by: FredApps <[email protected]>
2026-12-05 13:12:48 -08:00
dotCooCoo f6255a1d8a Menus: start the Scripts revision test from the app's own snapshot
The test compared the shared shortcut editor snapshot before and after the
steps. Another test switching languages can replace that snapshot after the
app's catalog was built, so the refresh rebuilt the catalog while the guard
saw no change and the assertion failed. The guard now starts from the
snapshot the app's catalog holds.
2026-12-05 13:10:35 -08:00
dotCooCoo a7a5bfff70 Merge main into feat/width-profile-reorder 2026-12-05 13:04:00 -08:00
dotCooCooanderolkarino 7eb1280a7f Width profiles: reorder the Profile list
Rows of the Profile drop-down below Uniform can be dragged to a new
place, and stroke.widthProfile.move {name, to} does the same from a
script. Uniform stays first. The order is kept with the preferences
(widthProfileOrder) and is stored only while it differs from the
default one.

- move takes a profile's id or its label, and refuses Uniform, an
  unknown name and a `to` past the last row.
- Moving a profile to the place it already has changes nothing.
- A deleted saved profile leaves the order, so one saved later under
  the same name goes to the end of the list.
- Reset Profiles also puts the built-ins back in their first order,
  and is enabled when only the order changed.

Ported from the reordering part of #10920.

Co-authored-by: erolkarino <[email protected]>
2026-12-05 13:03:50 -08:00
dotCooCoo ee1d35e8d6 Dependencies: craft-libs pin to main at f9e5cecc9c
Every craft-libs rev moves on to craft-libs main at f9e5cecc9c, which also
holds storytold/craft-libs#4039 and #5541. The egui, winit and acadrust
revs stay as craft-libs pins them.
2026-12-05 12:46:02 -08:00
dotCooCooandFredApps 60e644be81 Fix #10231: a Windows pen stroke starts and ends at the pressure the pen reports
A pen that reports pressure can report 0 while its tip is in contact, as
the tip touches down and lifts. pen_sample read that 0 as "no pressure"
and gave the sample full pressure, so a pressure-sized Blob Brush stroke
began with a half circle and ended with a full circle at the brush's
largest size. A pen with the pressure mask now keeps its 0; a pen in
contact that reports no pressure still presses fully, and a hovering
pen still reads 0.

Carries the windows_stylus.rs part of #10249.

Co-authored-by: FredApps <[email protected]>
2026-12-05 12:45:22 -08:00
dotCooCoo 75e46aa3c3 Merge main into chore/craft-libs-pin-5489
# Conflicts:
#	crates/ui-egui/src/chrome/control_bar.rs
2026-12-05 12:39:58 -08:00
.CooCoo 21fd9d2c19 Merge pull request #10949 from ruchirguitar/fix/contextual-taskbar-panels-10233
fix(ui): anchor control bar Stroke, Opacity, and Style popovers (#10233)
2026-12-05 12:35:13 -08:00
dotCooCoo 4e8dfc369d Merge main into fix/save-metadata-only-change 2026-12-05 12:33:51 -08:00
dotCooCoo 9866d013b9 Save: Close waits for a file comparison, scripts hold it, reads follow the caller's scope
- Close with Save waits while the save compares the document's file. The
  OK of the import-loss question runs File > Save, which can start a
  comparison; Close used to report "not saved, so not closed" and stop.
- A comparison that answers while a script runs waits for the script to
  end when its document is not active. Activating the document to write
  it failed with a busy error while the script ran.
- The digest and comparison threads check read access under the
  file-access scope of the call that started them. A file that scope may
  not read leaves no digest, and Save asks as it does on a change.
2026-12-05 12:33:51 -08:00
dotCooCoo a00e0eb2bd CI: unreached-rs skips the standalone example panel plug-in
The example panel plug-in in #10981 is a Cargo project of its own
(`crates/plugins/example-panel`, with its own `[workspace]`) that builds
for wasm32 only, so no workspace module reaches its `src/lib.rs` and the
gate's unreached-rs check fails the lint leg. The gate's
`unreached-rs-allow` input now lists that directory next to the default
`**/fixtures/**`.
2026-12-05 12:31:35 -08:00