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.
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.
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.
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.
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.
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.
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.
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.
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.
With Discard White Overprint on, PDF export, Overprint Preview,
Separations Preview and printed separations took the overprint off any
white paint, including a tint above 0% of a spot swatch whose color is
white, which prints as that ink. Such a tint now keeps its overprint in
fills, strokes, character paints and a colorized image's color; process
white and a 0% tint still knock out.
DiscardWhite holds the setting and the document's spot inks, and
Document::discards_white_overprint gives the same answer for the PDF and
EPS writers.
- A script's global let and const names are added only after the room
for them and the declarations is checked, so a run that stops at the
heap limit leaves no uninitialized name behind and the same script
runs once the limit is raised.
- Spread of an array with a length too long for an array literal throws
RangeError at once when every prototype getter with an index name is
hidden by an own property of the same name earlier in the chain. The
scan takes one unit of fuel for each earlier object it looks in, and
stops where the fuel runs out.
- A spread test now checks the heap total right after the limit stops
the spread, before a later step could collect, and a larger limit
lets the same spread complete.
Push buttons and number fields look like production's VectorCraft, through craft-libs options set once at the app's root.
- Push buttons that ask for no look are filled tiles with no edge at rest (`PushButtonLook::Filled`); hover adds the control edge and pressing tints them, as production's were. The Contextual Task Bar's actions ask for the outline, as production drew them.
- Number fields show their value and unit as one run at the field's start, in the interface face ("720 pt", "0°", "100%"; `NumberLook::Inline`), with production's precision (whole percentages, lengths to a thousandth of a point).
Tests: five field tests read production's text again. Select All covers "37 pt", Copy copies "37 pt", and Opacity reads "60%", "50%" and "100%", which is what production's own tests asserted. The port had moved them to its centred look ("37", "60 %").
Checks: `vectorcraft-ui-egui` lib tests 3775 passed, 0 failed (the last two test fixes were re-run in their modules). Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.