Commit Graph

27021 Commits

Author SHA1 Message Date
.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
.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
.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 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
.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 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 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
.CooCoo f567a6a05b Merge pull request #10959 from dotCooCoo/fix/paste-late-read-finds-bitmap-copy
Paste: a bitmap copied here is found after a late text read on Linux
2026-12-05 11:35:32 -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
.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
.CooCoo 4e1f2bfa54 Merge pull request #10915 from dotCooCoo/fix/swatches-browser-selection-set
Swatches: the panel checks a large selection in one read of the swatches
2026-12-05 10:14:53 -08:00
.CooCoo d847eef951 Merge pull request #10966 from dotCooCoo/fix/clip-self-crossing-area
Scripting: a self-crossing clip path counts as enclosing an area
2026-12-05 09:54:59 -08:00
dotCooCoo b7604a54e7 CI: build the tests without bundled fonts in the build job, not the lint leg
The lint leg's dependency cache keeps no compiled workspace crates, so on
a pull request `cargo test -p vectorcraft-ui-egui --no-default-features
--test install_fonts` rebuilt every workspace crate without the bundled
fonts: 35 of the lint leg's 60 minutes, and the longest leg of the run.

`cargo xtask ci` splits its no-bundled-fonts step in two. The
`no-bundled-fonts` step (the `cargo tree` checks and the clippy run
without default features) stays in `cargo xtask ci checks`. The new
`no-bundled-fonts-tests` step runs the two tests, and the new
`cargo xtask ci after-archive` runs it after the doctests in the gate's
build job, whose rolling cache entry keeps the workspace crates. The
tests' builds record their units in CRAFT_CACHE_UNITS, so the cache trim
keeps the crates built without the fonts.
2026-12-05 09:53:20 -08:00
.CooCoo 5a11dde8bc Merge pull request #10833 from ruchirguitar/fix/type-menu-conversion-10830
Type menu: show conversions for the selected text kinds
2026-12-05 09:39:40 -08:00
dotCooCoo 31e7720114 Merge main into fix/anchor-marks-move-translate 2026-12-05 09:25:10 -08:00
dotCooCoo 65ad024ee8 Canvas: keep the moved anchor marks mesh only when every square edge rounds the same
The kept mesh moved when each anchor's screen position moved by whole
pixels, but a square's edges are computed in f32 from that position and
rounded to pixels by the tessellator. A 5 pt anchor at x = 252.99998
moving one pixel has its right edge go from 255.49998 to 256.5, which
round to 255 and 257, so the moved mesh drew that edge at 256.

The move now checks the squares the marks draw at each point, at the
anchor size and at the handle size: each must keep its f32 size and
have every edge round to pixels moved by the same whole pixels.
Squares thin enough for the tessellator to draw as a line are
tessellated again after any move.
2026-12-05 09:25:09 -08:00
dotCooCoo c7e6cd5487 Color Picker: a script's picker uses its document's CMYK profile in RGB documents too
The CMYK fields of a script's picker now convert through the CMYK profile
of the script's document whenever one is given, not only in a CMYK
document, matching the gamut warning. An RGB color opens through the
active RGB profile, which the picker's RGB fields read its channel values
in, so the opening swatch and the fields agree. docs/mcp.md names the
profiles the picker uses.
2026-12-05 09:20:58 -08:00
.CooCoo f5907381f5 Merge pull request #10336 from mocenigo/fix/resize-color-space
macOS: the window keeps its colours while it is resized
2026-12-05 09:16:01 -08:00
dotCooCoo 5d69721b42 Open: refuse a truncated RTF file, wait for other dialogs
File > Open refuses an RTF file that ends inside a group as damaged
instead of opening the text read before the end; File > Place still
places that text. Binary data and bytes after the document's closing
brace are skipped, as the reader skips them.

Text Import Options for a file File > Open asks about now waits while
any dialog is open, as Missing Fonts does, so the two never show at
once.

The File > Open filter test uses the extensions and formats this build
reads, so it holds where no DWG decoder is built in.
2026-12-05 09:12:33 -08:00
.CooCoo 71c3002af4 Merge pull request #8817 from Hassan1305/fix-8753-draw-inside-stroke
Draw Inside: keep the object drawn into as the clipping path, with its stroke
2026-12-05 09:11:36 -08:00
dotCooCoo b4c4ca09de Merge main into train/carry10920 2026-12-05 09:07:26 -08:00
dotCooCoo ddbc4b1047 Merge main into train/carry10603 2026-12-05 09:07:22 -08:00
dotCooCoo f894727fd6 Merge main into fix/save-metadata-only-change 2026-12-05 09:07:20 -08:00
dotCooCoo a1e9779fba Save: a file comparison waits for a drag in another document and wakes after a dialog closes
A save whose file comparison answered made its document active even while
a drag went on in the active document, and the switch canceled the drag.
The save now waits until the drag ends (no interaction and no held press
in the active document), as it already waited for another document's
dialog or file picker.

A save that waited for a dialog went on only at the next input after the
dialog closed, because the dialogs close in the UI pass, after the save
pump has run. The pass that closes the dialog, or ends the drag, now asks
for one more frame, and no frames are asked for while the save waits.
2026-12-05 09:07:19 -08:00
dotCooCoo 14097718db Merge main into fix/paste-late-read-finds-bitmap-copy 2026-12-05 09:07:10 -08:00
dotCooCoo 8415ba1eb6 Paste: the text is read before the late paste's bitmap check
When a late files read finds no copied files and the Copy made here was
a bitmap, Paste read the bitmap to compare it with the Copy before it
read the text. A bitmap read that gets no answer leaves the clipboard
worker busy, so the text read then failed at once and Paste took the
internal Copy instead of the text another app put there. The text is
now read first and kept for the paste.
2026-12-05 09:07:06 -08:00
dotCooCoo 87e65b90d3 Docs: the Profile drop-down's footer
docs/mcp.md's Width profiles section says which commands the footer's
Add to Profiles, Delete Profile and Reset Profiles run, and the
progress doc gets a line for the footer with its tests.
2026-12-05 09:01:22 -08:00
dotCooCoo 238870c3e1 Stroke: describe the Profile drop-down in its own terms
The ProfileSelect doc comment named another vendor's app; it now says
what the drop-down holds. The closed and open widths, the Page Up/Down
step and the saved-row thumbnail size are documented consts, and the
thumbnail's size and inset are no longer literals at their call sites.
2026-12-05 09:01:22 -08:00
dotCooCoo 05c99d7f58 Stroke: screen readers step and set the Profile drop-down again
The framework's Select, which the Profile control used before, reports
the picked row's place in the list as a numeric value and takes
AccessKit's SetValue, Increment and Decrement. The new drop-down set
only a text value and never read take_set_value, so a screen reader
could no longer step or set the profile. ProfileSelect::access now sets
access.numeric with the row's place and label, and update takes
SetValue and the step moves before its focus check, as Select does.
2026-12-05 09:01:22 -08:00
.CooCoo 93749901fa Merge pull request #10831 from mcenahle/i18n/zh-hans-check-for-updates
i18n(zh-hans): translate Check for Updates menu item
2026-12-05 08:56:57 -08:00
dotCooCoo d15584f20b Merge main into fix/anchor-marks-move-translate 2026-12-05 08:36:30 -08:00
dotCooCoo 0d2a98eed6 Merge main into train/carry10603 2026-12-05 08:34:13 -08:00
dotCooCoo d660414ef4 Docs: Gujarati counts, the web font prerequisite and the tests that need rows
The Gujarati status notes now give the catalog's real counts: 4,946 `@msg`
rows and 10,890 rows in all, and the revision rows give 4,926 new message
rows. They also say that a web build offers Gujarati only when it is built
with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans
Gujarati; without it `offered_codes` leaves `gu` out on the web.

docs/development.md no longer says a missing translation never fails a test.
It names the four tests that need a row in every complete catalog or every
`COMPLETE_MESSAGES` language.
2026-12-05 08:34:13 -08:00
.CooCoo b143faa667 Merge pull request #10365 from yoriswind/codex/5233-graph-command-availability
Graph: enable editing commands only for a selected graph
2026-12-05 08:29:40 -08:00
dotCooCoo da065b3ca8 Color Picker: a script's picker shows color in its own document's profiles
app.showColorPicker opened the picker with the front document's color
profiles: the opening color, the CMYK fields and the out-of-gamut test
used the active context, while OK converted the pick through the
script's document. With two documents assigned different profiles, the
picker showed and separated colors in the wrong space.

The script picker now draws its opening color, fills its CMYK fields
and tests the gamut through the profiles of the script's document.
Pickers opened from the panels keep using the active profiles.
2026-12-05 08:27:20 -08:00