Commit Graph
19780 Commits
Author SHA1 Message Date
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 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 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
.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 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
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
BFlat 11a26acb0b Merge pull request #9109 from dotCooCoo/feat/js-es2020-optional-chaining-nullish
Scripts: .js scripts read optional chains and the ?? operator
2026-11-24 16:09:45 +07:00
BFlat cf2c4ae3f7 Merge pull request #9187 from dotCooCoo/fix/js-dollar-stack-script-frame
Scripts: $.stack starts with a line that names the running script
2026-11-24 16:08:08 +07:00
BFlat 0773e17df5 Merge pull request #9161 from dotCooCoo/feat/outline-linked-image-x
Outline view: linked images and placed documents show their box with an X
2026-11-24 16:07:52 +07:00
BFlat 3049775dee Merge pull request #9156 from dotCooCoo/fix/plugin-compound-member-state
Plug-ins: a filter keeps a compound path's hidden and locked members
2026-11-24 16:07:35 +07:00
BFlat 74870a8fb8 Merge pull request #9150 from dotCooCoo/fix/delete-keeps-id-cache
Delete: removing objects one at a time keeps the id lookup cache
2026-11-24 16:07:15 +07:00
BFlat c3c02f81e0 Merge pull request #9128 from dotCooCoo/fix/print-fonts-setting
Print: the Fonts setting chooses how PostScript output sends type
2026-11-24 16:06:58 +07:00
BFlat 87de595305 Merge pull request #9096 from dotCooCoo/fix/plugin-run-no-op-undo
Plug-ins: a run that changes nothing records no undo step
2026-11-24 16:06:33 +07:00
BFlat 7696b503e6 Merge pull request #9079 from dotCooCoo/feat/js-es2015-block-arrow-template
Scripts: .js scripts run let, const, arrows, templates, default and rest parameters and spread
2026-11-24 16:06:07 +07:00
BFlat c79555c25c Merge pull request #9070 from dotCooCoo/feat/scripts-unitvalue
Scripts: UnitValue measurements convert and calculate with their units
2026-11-24 16:05:51 +07:00
BFlat 50a4d049fb Merge pull request #9063 from dotCooCoo/feat/three-d-mesh-attributes
3D: meshes carry UVs, smooth bevel normals and a part index
2026-11-24 16:05:34 +07:00
BFlat 2e09e5135f Merge pull request #9046 from dotCooCoo/feat/quick-pen-arc-center-i9314
Pen: Quick Pen marks an arc's center with a cross while the arc is drawn
2026-11-24 16:05:16 +07:00
BFlat fd349e4d11 Merge pull request #9015 from dotCooCoo/fix/smooth-no-worse-pass
Smooth: a drag that would not make a path smoother leaves it as it was
2026-11-24 16:05:00 +07:00
BFlat 1bd8c8cb6e Merge pull request #8987 from dotCooCoo/fix/script-export-linked-files
Scripts: vc.run export of an open document reads its own linked files
2026-11-24 16:04:43 +07:00
BFlat 86a03fcdff Merge pull request #8986 from dotCooCoo/feat/dimension-alt-object-size
Dimension tool: Alt over a path places its overall width or height
2026-11-24 16:04:27 +07:00
BFlat 293dde3d19 Merge pull request #8981 from dotCooCoo/fix/smooth-region-bounds-prefilter
Smooth: a drag over a long path measures only the anchors and segments near it
2026-11-24 16:04:10 +07:00
BFlat 7d984fc7f3 Merge pull request #8964 from dotCooCoo/feat/plugin-manifest-section
Plug-ins: read the manifest from a custom section before running any code
2026-11-24 16:03:53 +07:00
BFlat b4696e31f6 Merge pull request #8933 from dotCooCoo/fix/relink-mask-matching-file-path-docs
Docs: a clipping mask that matches the old file's clipping path is relinked as the file's
2026-11-24 16:03:22 +07:00
BFlat 2d978d843c Merge pull request #8932 from dotCooCoo/fix/palette-typo-description-order
Command Palette: docs rank typo results that match a word by description last
2026-11-24 16:03:05 +07:00
BFlat eddd17cd27 Merge pull request #8921 from dotCooCoo/fix/missing-font-wrong-token-test
Tests: the missing-font question's tests check the open question and the clicked caret
2026-11-24 16:02:48 +07:00