Commit Graph
21633 Commits
Author SHA1 Message Date
.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 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 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
.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
.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 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 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
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 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 2c9d18b6dc Effect Gallery: preview, filter folders and settings side by side
The gallery showed a small preview above a categories list and a single
long column of filters, so the dialog grew tall and narrow.

The dialog now lays out three columns: the preview at the start, the
category folders with their filter thumbnails in the middle, and the
filter settings with the effect layers at the end. The preview is a side
menu's width (`LeastWidth::SideMenu`) and is drawn one texel to a device
pixel, so it keeps its size in points on high-density screens; the
filters draw at the same document size at every density.
2026-12-05 12:13:35 -08:00
dotCooCoo ae0adc1fff Menus: keep the shortcut catalog when a Scripts read leaves its rows as they were
The catalog's generation hashed the Scripts menu's revision and the font
database's generation. Each startup step that moved either one (the Scripts
note before the first listing, the listing itself, the font scan) made the
catalog's rows again and built the window's keymap again, even when the rows
were the same. On a fresh start that happened three times in the first
frames.

The catalog is now kept when its rows are unchanged: the rows the scripts
and fonts add are compared as rows, and the catalog's generation hashes each
row's key, label and kind. A menu that shows or hides an item the rows
already have no longer moves the generation either.

On Windows (release build, fresh settings folder, 3 runs), the UI thread's
work in frames 0 to 2 went from a median of 226 ms to 130 ms, and catalog and
keymap builds in the first 6 seconds went from 4 to 2.
2026-12-05 12:12:55 -08:00
dotCooCoo 33e3c8db4c Merge main into chore/craft-libs-pin-5489 2026-12-05 12:12:37 -08:00
dotCooCoo 94acea6ef6 Swatch Strip: a right-click needs its press and release on the same chip
A right-button release on a chip set the stroke even when the press began
elsewhere, so a right-drag from empty space onto a chip changed the stroke.
The strip now remembers the chip (by document and paint) that a right
press landed on and sets the stroke only when the release lands on that
chip. Presses on a layer covering a chip, and the invisible sizing pass of
a measuring container, do not count, and a chip that moves in the list
between press and release still does.
2026-12-05 12:11:54 -08:00
.CooCoo c47b079671 Merge pull request #10964 from dotCooCoo/train/carry10603
i18n: Gujarati status and error messages, and the remaining interface strings (carries #10603)
2026-12-05 11:55:04 -08:00
dotCooCoo cb5ec21878 Merge main into chore/craft-libs-pin-5489
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	apps/vectorcraft-web/Cargo.toml
#	xtask/src/pdf_deps.rs
2026-12-05 11:45:52 -08:00
dotCooCoo 86b5e07ac7 Dependencies: craft-libs pin to main at 643892adc7
Every craft-libs rev moves on to craft-libs main at 643892adc7, which also
holds storytold/craft-libs#3665, #3710, #4928, #5471 and #5554. The egui,
winit and acadrust revs stay as craft-libs pins them.

With craft-libs#4928 the Bezier overlay paints its anchors and handles as
one kept mesh. The test that compares the canvas anchor marks with the
overlay now tessellates the marks' run of shapes the same way before it
compares them, and leaves out placeholder shapes that paint nothing.
2026-12-05 11:37:42 -08:00
.CooCoo 3451868b24 Merge pull request #10967 from dotCooCoo/fix/script-picker-document-cmyk
Color Picker: a script's picker shows color in its own document's profiles
2026-12-05 11:34:52 -08:00
.CooCoo c22dc54e54 Merge pull request #10874 from dotCooCoo/feat/open-text-documents
Open: text, RTF and Word files open as a new document
2026-12-05 11:16:01 -08:00
.CooCoo 83393daca1 Merge pull request #10972 from dotCooCoo/fix/thumbnail-render-no-copy
Thumbnails: node renders and swatch previews become images without a copy
2026-12-05 11:15:21 -08:00
.CooCoo f55d3c6643 Merge pull request #10973 from dotCooCoo/train/carry10920
Stroke: the Profile drop-down ends in Add, Delete and Reset Profiles
2026-12-05 11:14:57 -08:00
dotCooCoo fb9759490f Fonts: the startup scan lists the installed fonts once
Since the move to the craft font catalog, the global catalog asked the
platform's font service (DirectWrite on Windows, CoreText on macOS) and
also ran the app's platform lister, which lists the same fonts again.
On Windows the font service opens and maps every installed face, so the
background font scan did that work twice at every start.

set_platform_font_files_complete sets a lister that lists every font
the font service lists. The catalog then reads the lister's files and
does not ask the font service. set_platform_font_files keeps adding to
the font service as before. The desktop app and vectorcraft-cli install
their Windows and macOS listers with the new call; both listers already
read DirectWrite's system collection (plus GDI's fonts) and CoreText's
available fonts.
2026-12-05 11:04:14 -08:00
dotCooCoo 4c020bfb08 Merge main into fix/save-metadata-only-change 2026-12-05 11:00:16 -08:00
dotCooCoo 4dd330c8bb Save: a file comparison wakes the app, waits for its own preview, and ends with its save
- The comparison's thread asks for a frame once it answers, so a save
  started from the menu finishes without waiting for the next input.
- A comparison that answers while a dialog previews a change in the
  save's own document, or a drag in it is not yet committed, waits for
  the preview to end, so the file never holds a change that Cancel
  takes back. Typing in progress is saved as by any Save.
- A save with an explicit path that ends while a comparison is pending
  drops the comparison and frees the flow, so no changed-on-disk
  question opens with no save left to apply its answer.
2026-12-05 11:00:14 -08:00
.CooCoo 57262ba325 Merge pull request #10588 from ruchirguitar/feat/language-packs-ui
Language packs: a Preferences page to install them and a bar that offers a missing one
2026-12-05 10:55:19 -08:00
dotCooCoo 900d0ceea0 Merge main into fix/anchor-marks-move-translate 2026-12-05 10:53:38 -08:00
dotCooCoo 63e06cd7cf Canvas: tessellate the anchor marks again when a built square is thin enough to draw as a line
The move of the kept anchor marks mesh compared each requested square side
with twice the feathering, but the tessellator tests the built rectangle's
f32 width and height. A side just over 2 pixels gives a square exactly 2
pixels wide at x = 252.5, which the tessellator draws as a line. The check
now tests both built squares, before and after the move.
2026-12-05 10:53:38 -08:00
dotCooCoo 93989cd3ac DXF/DWG import: shaded hatches leave a block's scale check unchanged
Main added Geom::Shaded for gradient and pattern hatches, and the scale
check's match did not cover it, so vectorcraft-cad stopped compiling.
Gradients fill and pattern lines carry their own dashes at the
lineweight, so neither makes a block's look depend on its insert scale.
2026-12-05 10:44:01 -08:00
.CooCoo 68d102561e Merge pull request #10970 from dotCooCoo/fix/live-shape-draft-target
Transform: an unfinished live shape value stays with the shape it was typed for
2026-12-05 10:34:53 -08:00
dotCooCoo 0a6a73dea2 Merge main into fix/dxf-scaled-block-dashes 2026-12-05 10:30:54 -08:00
dotCooCoo c8d90bb79f Edit Toolbar and DWG export keep their behavior on the new craft-libs
- Tools panel and toolbars: a click on a toolbar's Edit Toolbar button while
  the drawer is open beside another toolbar takes the drawer there again. The
  rail now also reports the button's response from its measuring pass, so the
  click ran window.editToolbar twice in one frame and the second run closed the
  drawer. The command runs only from the pass that shows the rail.
- DWG export: craft-dwg now also writes R13 and R14. DWG export still offers
  2000 to 2018 and refuses R12, R13 and R14 with the same message.
- Blend Options: the Ramp test expects the number field to keep its focus when
  another blend is selected, as SliderField::edit_target keeps it. The draft
  is still dropped and nothing is committed to the new blend.
2026-12-05 10:13:13 -08:00