A dialog's custom row drawn as a raw egui layout measured as wide as the room it was offered, so DXF Options, New
Swatch, PNG and JPEG Options and Radial Blur opened at the window's full width. The rows in the export options, Save
Options, Document Setup, Swatch Options, the effect rows, the Clean Up and color add-ons, the edit toolbar, Edit
Original and the preferences file buttons now use Row and Stack.
A framework container may run its body more than once in a pass. Presses and picks inside a body are kept in locals and
applied after it: the HP-GL pen rows apply Add, Remove and the Pen Table switch once, and the legacy board picker
toggles a board once.
document.find with `select: true` is journaled, so during a tool drag it
now runs outside the drag like other journaled commands. It finds and
selects only objects outside the drag's preview, as its replay before
the drag does.
Main moved Save for Web's color table edits to dialogs/save_for_web/color_table.rs. The 256-shift limit and the matching of colors written another way now live there, with their tests in tests_table.rs.
put_back_interaction compares the new-art paints field by field. It now
destructures PaintDefaults without `..`, so a field added to the struct
does not compile until it is handled there.
The white checks for colorized images in PDF export, EPS export and Print
Ink Fixes now go through DiscardWhite, which replaces
Document::spot_ink and Document::discards_white_overprint. Printed
separations read DiscardWhite with the spot inks they print, so a white
spot ink converted to process inks knocks out there.
A key shifted to itself or a deleted color no longer counts toward the
256 shifts, and a new shift writes `shifted` without those entries. A
map the engine refuses (a key or value that is not a color, two keys
naming one color) is kept whole, so the engine still reports it.
Docs: docs/mcp.md.
Outline joined crossings closer together than the art-size tolerance
multiplied by precision / 0.01. Scale Strokes & Effects scales the art and
the precision together, so scaling both by 10 made that distance 100 times
larger, and crossings that were apart could become one junction.
The distance is now precision / 10000, or the tolerance for the art's
size when that is larger. At the 0.01 pt default it is 0.000001 pt as
before, and scaling the art and the precision together gives the same
pieces at the new size. The params text of object.pathfinder.options and
of the Pathfinder effects, docs/mcp.md and the Pathfinder Options line in
docs/target-app-parity.md describe the new rule.
After the craft UI framework move, `control` no longer exports
`ControlRequest` or `Outcome`; `control::handle` takes a
`craft::automation::ControlRequest` and returns a `Reply`.
When a command run during a tool drag deletes, hides or locks an object
that the drag's preview names in its ids, the preview applied again
leaves that object out, so the drag still edits the others. A preview
left naming no object records no step.
When the command changes the selection, the journal also records the
drag's own selection after the command (select.set, with its anchors,
segments, guides and key, or its slices, target, symbol part or Objects
on Path member), so replaying the journal moves the objects the drag
moved. A targeted object keeps its guides and key, and a path with
every anchor selected keeps them selected as anchors. The current layer
and the highlighted Layers panel rows are left as the drag left them.
Outline treated two chains as one edge when their start, end and midpoint
were within the merge distance. At a coarse Precision, two closed
boundaries that share those three points but part elsewhere (an ellipse
inside a circle, touching at its rightmost and leftmost points) became
one edge, and the inner boundary was dropped.
The ends and midpoint now only pick the candidates. Two chains are one
edge when each lies within the merge distance of the other along its
whole length: every piece is checked at points no farther apart along its
control polygon than that distance, at most 64 to a piece, always
including its middle. Chains whose pieces pair up with control points
within the distance are taken without sampling, so copies of a detailed
path cost no more to merge than before.
- A stored module's file is read again on its worker thread once the module
has loaded, whatever the file's modified time, and the install still skips
a file whose stamp changed since. The UI thread no longer reads the file.
- Stored and folder modules install through registry::install_for_load,
which checks for an install or removal of the id elsewhere while the
plug-ins' write lock is held, and records the module's grant in the same
step. A grant is forgotten only while the plug-in that took that revision
is still installed (registry::revoke_if_installed).
- A grant that a stored load removed and must put back for a later file is
written to grants.json first; when that write fails, the module is not
installed, and a grant put back for a module that then did not install is
removed again.
- A folder load in which a file found no loader thread is loaded again the
next time the preferences are applied. A plugin.reload keeps its report as
the folder last loaded only when no load started after it.
- Loads: a job's time is read while it is marked finished, the deadline check
reads the clock under the same lock, and only the jobs taken from the queue
fail when no worker is left. wait() counts outcomes taken with ready() as
released, so the jobs after them start.
- File › Open checks the path again after waiting for the plug-in loads.
- Tests wait for workers with bounded receives.
Discard White Overprint covers process white only. A white fill or
stroke linked to a spot swatch at a tint above 0% is written as its own
Separation ink and now keeps overprinting. Global process swatches, a
0% tint and a spot swatch without a color still knock out.
- A selected color or list entry written another way (`#00F` for
`#0000ff`) now names its table color: Lock, Transparent, Web Shift and
Delete Color act on it and write it as the table does, and the ring
and button labels follow it.
- Delete Color compares the table's lists as colors, so deleting the
only color left is refused when the selection or a list is written
another way, and a deleted color is taken out of the Lock, Transparent
and Web Shift lists however they write it.
- A Ctrl-click on a selected color takes out every selection entry that
names it.
- A spelling with alpha (`#rrggbbaa`) names no table color, as the
engine reads the table.
Docs: docs/mcp.md.
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.