Commit Graph
19846 Commits
Author SHA1 Message Date
BFlat b8921079f4 Merge pull request #9262 from dotCooCoo/fix/plugin-run-tests-hang
Tests: the progress-window tests hold the app's clock still, and the heavy filter shortcut test keeps its run on a manual job queue
2026-11-25 11:31:15 +07:00
BFlat 5158ad606c Merge pull request #9047 from dotCooCoo/fix/ctrl-lends-selection-tool
Selection: Cmd/Ctrl lends Direct Selection until it is released
2026-11-25 11:31:03 +07:00
BFlat a29219540c Merge pull request #9025 from dotCooCoo/fix/distinct-tool-icons
Tool icons: every tool gets an icon of its own instead of sharing its group's
2026-11-25 11:30:50 +07:00
BFlat 28552bb611 Merge pull request #8980 from dotCooCoo/feat/artboards-rearrange-selected
Artboards: Rearrange works on the selected artboards only
2026-11-25 11:30:31 +07:00
BFlat 55e95148ee Merge pull request #8950 from dotCooCoo/feat/docinfo-image-details
Document Info: Linked Images and Embedded Images show each image's format, resolution and memory
2026-11-25 11:30:10 +07:00
BFlat ff76698cd1 Merge pull request #8937 from dotCooCoo/perf/docinfo-cached-rows-no-copy
Document Info: frames that fetch nothing reuse the cached rows without copying them
2026-11-25 11:29:48 +07:00
BFlat bb2b26cf99 Merge pull request #8902 from dotCooCoo/fix/crop-image-wide-apply-cancel
Control bar: a test checks Crop Image's Apply and Cancel
2026-11-25 11:29:36 +07:00
BFlat cbb977b8f1 Merge pull request #7642 from dotCooCoo/feat/color-wheel-opacity
Part of #978: Show Opacity in the Color Wheel panel sets the opacity of the fill or stroke
2026-11-25 11:28:54 +07:00
BFlat 1b831cf847 Merge pull request #9124 from dotCooCoo/fix/library-numbered-tint-names
Swatch libraries: swatches a pattern brings skip the library's numbered names
2026-11-25 11:28:34 +07:00
BFlat 89d426633d Merge pull request #9095 from dotCooCoo/fix/flaky-filter-plugin-shortcut-test
Tests: the filter shortcut test no longer sees plug-ins another test installs
2026-11-25 11:28:16 +07:00
BFlat 0ce586a481 Merge pull request #9092 from dotCooCoo/feat/plugin-menu-placement
Plug-ins: a command's manifest can place it in another menu
2026-11-25 11:27:56 +07:00
BFlat 617f5d6d71 Merge pull request #9066 from dotCooCoo/feat/inscribed-circle
Path Precision Tools: Add Inscribed Circle draws the largest circle inside a path
2026-11-25 11:27:35 +07:00
BFlat 53199e5dbc Merge pull request #8948 from dotCooCoo/fix/script-grants-read-failure
Scripts: script.grants reports an error when the grants file cannot be read
2026-11-25 11:27:15 +07:00
BFlat bda9d9c11d Merge pull request #8909 from dotCooCoo/fix/plugin-result-limit
Plug-ins: the host refuses a function type past 32 parameters or results before validating code
2026-11-25 11:27:00 +07:00
BFlat 2fb75e8100 Merge pull request #8788 from dotCooCoo/feat/quick-pen-length-handles
Pen: Quick Pen handles at a path's ends make its line or arc longer or shorter
2026-11-25 11:26:26 +07:00
dotCooCoo cfce95e78c Merge main into fix/flaky-filter-plugin-shortcut-test 2026-11-24 19:21:56 -08:00
dotCooCoo aa8aba4500 Merge main into feat/artboards-rearrange-selected 2026-11-24 19:00:31 -08:00
dotCooCoo aadcdb774a Tests: the progress window's delay counts on the app's clock (now_override in tests), which the background-job tests hold still, and the heavy filter shortcut test keeps its run on a manual job queue, so neither depends on how fast a loaded machine runs 2026-11-24 18:45:30 -08:00
dotCooCoo a6783443d3 Document Info: an image with no pixels across or down gives no resolution
A linked image whose width or height is 0 has no area, so its row reads
`resolution unavailable` and `effectivePpi` is null, whatever its
transform.
2026-11-24 18:21:18 -08:00
dotCooCoo 0a36ef97e1 Merge main into fix/ctrl-lends-selection-tool 2026-11-24 18:02:30 -08:00
dotCooCoo ef5de4d5e5 Merge main into feat/docinfo-image-details 2026-11-24 17:57:03 -08:00
dotCooCoo 1ac56ef3ba Scripts: script.grants reports a grants file that is a link to a missing file
A link in the grants file's place whose target is missing is there but
cannot be read, so script.grants fails on it and script.grants.revoke
leaves it as it is, instead of treating it as a missing grants file.
2026-11-24 17:54:20 -08:00
dotCooCoo 96318e888e Merge main into fix/crop-image-wide-apply-cancel 2026-11-24 17:28:58 -08:00
dotCooCoo 6d0d4bd1a4 Merge main into fix/script-grants-read-failure 2026-11-24 17:26:58 -08:00
dotCooCoo cd3511ce1f Merge main into feat/plugin-menu-placement 2026-11-24 16:59:39 -08:00
dotCooCoo 99ffa0ebd8 Plug-ins: a command's menu.after is checked before its spaces are trimmed
A menu.after value with a control character at either end, or longer than 64 characters before its
spaces are trimmed, is refused with the same error as other wrongly shaped values.
2026-11-24 16:59:34 -08:00
dotCooCoo 9a60524d6b Merge main into feat/plugin-menu-placement 2026-11-24 16:21:26 -08:00
dotCooCoo 85399ece43 Tool icons: the Slice Tool shows its new icon
dc-slice.svg was registered, but tool_icon still mapped tool-slice to slice_knife, so the Slice Tool showed the old icon.
2026-11-24 15:24:55 -08:00
dotCooCoo 80ae7f8923 Merge main into fix/distinct-tool-icons 2026-11-24 15:23:27 -08:00
.CooCoo 9d050d2b01 Libraries panel: graphic and pattern thumbnails come from the framework's thumbnail store (Thumbnails with a ThumbSource), decoded a few a frame and kept per item and size, as the Symbols panel's are (#9232) 2026-11-25 06:00:27 +07:00
dotCooCoo da4cc3e9f9 Merge main into feat/inscribed-circle 2026-11-24 13:39:51 -08:00
dotCooCoo 5813d26ce7 Merge main into perf/docinfo-cached-rows-no-copy 2026-11-24 13:38:17 -08:00
dotCooCoo ecebe5f1d1 Merge main into feat/color-wheel-opacity 2026-11-24 12:33:59 -08:00
dotCooCoo ec42aea37f Merge main into fix/library-numbered-tint-names 2026-11-24 11:36:43 -08:00
dotCooCoo 11e53bfe2e Merge main into fix/plugin-result-limit 2026-11-24 11:13:19 -08:00
.CooCoo 8e7a6142fc JavaScript: a trailing comma ends call arguments and parameter lists (#9189) 2026-11-25 00:56:02 +07:00
.CooCoo 4c60269d1a Select: adding objects one at a time checks and reads only the added ones (#9145) 2026-11-25 00:55:44 +07:00
.CooCoo 5f35daad7b Scripts: File and Folder give their localizedName (#9185) 2026-11-25 00:54:37 +07:00
dotCooCoo b4c214169b Merge main into feat/quick-pen-length-handles 2026-11-24 09:16:09 -08:00
BFlat 825cf29a88 Cut tools test registers the app's icons before checking them (#9230)
CI runs each test in its own process, where nothing else has registered them.
2026-11-24 23:29:22 +07:00
BFlat bd685fff55 Preferences test: check the title bar note's wording, not the variable name (#9226)
The row's help joins its notes with the setting's own sentence, which names
VECTORCRAFT_TITLEBAR too, so on Linux the check held with the variable unset.
2026-11-24 22:05:18 +07:00
BFlat 19ebdcab54 Glyphs panel menu: East Asian form rows read the selection's fonts when the panel is hidden (#9223)
Fixes main's red Linux gate leg 1 (`panels::glyphs::tests::east_asian_glyph_forms_in_the_panel_menu_set_the_selected_characters_form`, `glyphs/tests.rs:243`). It was a real bug on every platform. The test skips without the craft fonts, so only Linux CI ran it.

**Cause.** The Glyphs panel menu's East Asian glyph form rows read the selection's faces from a cache that only the shown panel's `show` filled. With the panel hidden, the cache was empty, and the "unknown" arm enabled every form, so JIS 2004 was offered for a font with no `jp04`. Production always read the faces when it built the items (prod `panels/glyphs.rs:1407`, `:1492`).

**Fix.** `form_faces` returns the cached faces while their key is current and reads them otherwise, as `symbols::instance_flags` does. The unknown-means-enabled arm is gone. `refresh_form_faces` runs from the menu rebuild next to `symbols::cache_instances`, so the faces are read once per change of document, selection or fonts, whether or not the panel is shown.

Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed, with `CRAFT_FONTS_DIR` set so the glyph tests run in full. Clippy (`-D warnings`, all targets) and `cargo fmt --check` are clean.
2026-11-24 20:04:21 +07:00
dotCooCoo 1752a0c2d6 Merge main into fix/distinct-tool-icons 2026-11-24 04:57:52 -08:00
BFlat a245ad2a6e Contextual Task Bar: anchor conversions as icon buttons, as production (#9222)
The Contextual Task Bar for direct-selected anchor points draws Convert Selected Anchor Points to Corner and to Smooth as icon buttons, named and tooltipped by their label, as production did (prod `canvas/task_bar.rs:953` `icon_only`). The port had spelled out both labels, which made the bar very long.

Checks: `task_bar` and `tests::taskbar` tests 44 passed; clippy (`vectorcraft-ui-egui`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 19:56:01 +07:00
BFlat 18d2939ffc Look like production: control heights, padding, gaps, type and corners (#9221)
VectorCraft's controls, padding, gaps, type and corners take production's sizes, through the framework's size layer in one place: the app's `AppSizes` block (`crates/ui-egui/src/theme.rs` `SIZES`, under `compact`). Every component follows; nothing is set per component.

| Metric | Production (source) | Before | Now |
|---|---|---|---|
| Field and spinner height (`size.control.md`) | 26 (`widgets/text.rs:266`, `widgets/numeric.rs:1251`) | 24 | 26 |
| Panel inset (`space.pad.regular`) | 10 (`dock.rs:12`) | 8 | 10 |
| Row gap (`space.gap.row`) | 5 (`theme.rs:646`) | 4 | 5 |
| Panel tab strip | 33 (`panel_docking.rs:1508`) | 28 | 33 |
| Body / label / caption type | 13 / 12.5 / 11 (`theme.rs:655-656`, `labels.rs:11`) | 12 / 11.5 / 10.5 | 13 / 12.5 / 11 |
| Field and control corners | 5 (`text.rs:283`) | 3 | 5 |
| Menus and popups | 8 (`theme.rs:627`) | 4 | 8 |
| Windows and dialogs | 10 (`theme.rs:626`) | 6 | 10 |

Compact density stays: Comfortable's 30pt controls, 38pt title bar and 12pt control corners are all larger than production's. The title bar stays 32, as production's. Push buttons now share the 26pt control height; production's text buttons were 24.

Tests:
- `panels::tests_effectedit::effect_rows_drag_to_reorder_and_into_an_item`: the drop offset goes back to production's +9.
- `chrome::tests::label_links_open_their_panels`: its Control bar fixture is wider (2400) to fit production's type; assertions unchanged.

Both are listed in the port's test map.

Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 18:39:35 +07:00
BFlat 4fbca02f5b Look like production: title bar, command search, switcher, status bar, rail card, option links (#9220)
More of the window's chrome looks like production's VectorCraft, through craft-libs options already on the app's pin.

- **Title bar:** drawn on the background surface, as production's app bar was. Its trailing items leave by rank as the window narrows (Discord, then Learn, then Arrange, then the search) before the menus fold, as production's did.
- **Search:** the command search is a field (`CommandSearch`).
- **Workspace switcher:** quiet, and as wide as the workspace it shows.
- **Menus:** menu titles sit closer together (`MenuTitlePad::Control`).
- **Document tab:** the unsaved mark follows the document's name: "Untitled-1* @ 92 % (RGB/Preview)".
- **Status bar:** the position and timings sit at the bar's end and leave first when it narrows.
- **Tools rail:** shown as a card on the dock's background (`rail_cards`). Window › Toolbars › Compact packs it densely.
- **Option links** ("Opacity:", "Style:", "Character:" and the Appearance list's links) are drawn in the normal ink with an underline, as production drew them. Links that leave the panel's subject keep the accent. The Stroke field's label link still takes the accent; it needs a framework option and follows separately.

Tests: the app-bar fit test now expects the search field to keep its width until it drops; production narrowed it to its icon first. A framework option for a ranked unit with a short form is an open follow-up.

Checks: `vectorcraft-ui-egui` lib tests 3780 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 17:36:14 +07:00
BFlat e9ddb9dad7 Look like production: highlights, chips, task bar, headings, panel menus (#9217)
More of the port looks like production's VectorCraft. VectorCraft moves to craft-libs `next` at a4b6d3b6c (the pdf-deps check with it) and switches on the framework's new opt-in looks.

- **Highlights:** every icon button that is on shows production's highlight, the pressed fill (`#633f3e` in Medium Dark, production's `tool_active`) with no accent edge (`ActiveLook::Pressed` at the root, and on the tool rail). This covers the current tool, Snap, Guides and the panel toggles.
- **Paint chips:** Fill and Stroke chips show the dropdown arrow. The task bar's chips are compact, and the tool rail's colour chips are swatches.
- **Contextual Task Bar:** one rounded grip bar, members an item gap apart, and the bar hangs clear of the selection handles.
- **Properties:** the object-kind title is quiet (muted caption). "Ellipse Properties:" and the Align and Pathfinder sub-headings are production's sub-headings (normal ink, no rule). The Align panel draws production's divider above its options.
- **Labels:** glyph captions take a form's colon (X:, Y:, W:, H:); "#" and the colour channel letters stay bare.
- **Dock:** every panel group shows the panel menu button with the ≡ icon.
- **Status bar:** the help icon is production's 16 px.

Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean. The active tool's fill was sampled from an offscreen render of the whole window: `#633f3e`, production's.
2026-11-24 17:02:00 +07:00
BFlat d48c4207f7 Merge pull request #9102 from dotCooCoo/feat/colorized-image-overprint
Images: Overprint Fill makes a colorized image's color overprint
2026-11-24 16:39:55 +07:00
BFlat ac82f2911a CI: pdf-deps expects the new craft-libs pin; Edit Original tests' editor is executable on Linux (#9216)
Fixes main's two red Linux gate legs.

- **Leg 5 (`pdf-deps`)**: `xtask/src/pdf_deps.rs` pinned craft-libs `945e849cb`, the revision before #9211, so the check failed once the app moved to `3238a3eca`. It now expects `3238a3eca`; `cargo xtask pdf-deps` passes.
- **Leg 1 (`original_editor::tests`)**: the test helper `editor()` called `set_mode` on a copy of the file's permissions and never applied it, so on Linux the stand-in editor had no executable bit and the platform's application check (craft-libs `platform/src/open.rs`, `mode() & 0o111 != 0`) refused it. `native_choice_commits_persists_cancels_and_resets` and `original_editor_async_picker_validates_and_commits_only_on_ok` failed on Linux only; this leg was already red before the re-pin. The helper now writes the mode with `set_permissions`.

Checks: `original_editor` tests pass on Windows (6/6; the Linux path is what this PR's CI checks); clippy (`vectorcraft-ui-egui`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 16:25:51 +07:00
BFlat 867bf0e446 App bar: Discord button without the outline, as production (#9215)
The app bar's Discord button loses its outline: it now takes the app's default push-button look, a filled tile with no edge at rest and the hover fill on hover, as production's app bar drew it (`t.button` fill, `t.hover` on hover, no stroke). Discord's colour stays on its icon alone.

Checks: `chrome::` and `community` tests 62 passed; clippy (`vectorcraft-ui-egui`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 16:12:59 +07:00