* Dock: rail_cards is now column_cards in craft-libs
* Dock: pill panel tabs and rounded floating bodies, as production drew them
* Root looks: neutral link labels, hover command highlight, strong choices, accent slider tracks, filled dialog buttons, spaced sections
* Canvas: artboard edges black for the active artboard and grey for the others, as production drew them
* Canvas: smart guide labels in their overlay's colour, as production drew them
* Canvas: bleed in the error red and artboard marks in the grid grey, as production drew them
* Document tabs: production's strip heights, regular and large
* Floating window close test: aim at the title bar above the window's tab strip
* Place the selection widgets over the canvas, so a frame runs its UI once
SelectionWidgets was laid out in the canvas body's flow, which the layout
check found changed in every frame the canvas drew: the frame was discarded
and its whole UI ran a second time. It is placed over the canvas's rect, as
the other canvas controls are.
* Give nine trials the frames their behaviour needs now that a frame runs its UI once
* Give the merge-press and corner-list trials what their behaviour needs now that a frame runs its UI once
A merge the press frame applies changes the layout, so that frame runs again and its second pass already makes
the held press: the check accepts the lent tool once the merge is no longer pending. The picked corner list fades
out on the clock, which the trial now moves past before it checks the list is gone.
* Pin craft-libs at 357f332549af53e1a273c2952c3e9c44157bef72
* Field labels in the normal ink, semibold document tabs, Stroke and Opacity without a colon, a plain Properties Rotate field, as production drew them
* Only the shown pass of the canvas body starts the frame's panes, so a release over a floating window in the frame the pointer reached it drops the art
* Pin craft-libs at 75efd247498d47e41604f418bceb2adaf0e3b329
* A collapsed panel column's icon groups stand apart by a hairline, as production drew them
* Fill and Stroke chips: production's small square wells with their arrow, in the Properties panel and the Control bar
* The dock's columns stand flush and square at production's widths: a 310-point panel column and a 38-point icon column, the panel tabs in the framework's plain look
* The app bar's end shows Discord, a search icon and the workspace switcher, as production 0.24.1 does; tutorials and Arrange Documents stay in the Window menu
* Home: StartScreen's Column layout as production lays it out: the centred welcome title and subtitle, New and Open, the recent files as rows, Learn, the presets as page cards under Quickly start a new file, and Community's links with Join our Discord as the call to action; the Home title is 26-point (typography.display). The recent-files trial finds rows by name and folder. Needs the framework's StartLayout::Column (craft-libs fix/vc-home)
* Properties: the kind line heads the sections under it (QuietHeader::Heads), so the first draws no divider above it, as production's did
* Link labels (Stroke, Opacity:) draw their underline inside the label (LinkLabelUnderline::Inside), under the text as production drew it; it was clipped away
* Push buttons stand 24 points high (size.button), as production's flat buttons; fields stay 26
* Quiet headings (the kind line, Ellipse Properties:) stand a line of text high over their fields (QuietTitleRow::Text), as production's did
* Layers rows: the thumbnail with a tight gap and 14 points of indent per level (ThumbRows::Tight): 26-point rows as production's
* Layers: the Objects search field fills the filter bar up to its Filter button (ObjectsSearch::Fill), as production's did
* Home: production's "New file" and "Open" words, 60 points of page margin above the title and a 36-point Join our Discord (size.page.margin, size.page.action); New Document's preset cards show blank paper on flat cards (PresetCardLook::Page), as production drew them. Needs craft-libs fix/vc-home 9cf00b80e or later
* Control screenshots: frames keep coming until a capture is answered, not only until it is issued; its readback finishes in a later frame, so with nothing else repainting (the Color flyout open) a screenshot waited for the next wake, where production's capture kept painting
* Icon buttons draw 16-point glyphs (size.icon.glyph_md) in their 26-point buttons, as production's did (60% of the button): Align, the Transform flips, More Options
* craft-libs at next 461493afc: the panel spacing options, the menu Copy after Select All and Home's Column page options; pdf-deps follows
* Files dropped on a floating panel window open as before: the dock now names the panel each drop landed on (craft-libs a2967e3cc), which the app does not use
* The dock takes production 0.24.1's frame: block panel tabs on canvas strips with the column bars 14 points high, the tool column the only card with a square canvas strip on top, docks flush against the canvas with framed icon columns and square docked flyouts, the open panel's icon on the control surface; the status bar's rotation and artboard selects are filled
* craft-libs at next 4bed21baa: VectorCraft's dock frame options (block panel tabs, stepped column cards, flush docks, ruled icon groups with production's grip bands, filled status selects); egui follows the framework to b15ffe9bf; pdf-deps follows
* Color Wheel: the opacity row reads the target and color from the rows' pick
#7642's opacity row used the target, color and color settings of the old panel function, which #9256 split into show_rows. It now reads them from the Pick show_rows gets, and leaves the gap to the stack, as the other rows do.
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.
VectorCraft moves to craft-libs `next` at 3238a3eca (from bf62d509f), and follows the framework's changes so production's behaviour holds.
Framework fixes this brings in (all on `next`):
- Save for Web's hosted answers, Tab out of selectable label text, Escape in text fields, a focused stop in a closing layer losing the focus, grid labels beside a menu.
- A toolbar button's command runs as a command (clicking the active Blend tool finishes the blend again).
- A Page key bound to a command runs it ahead of the canvas page scroll.
- A command no longer closes and reopens a dock panel's flyout, so Cmd+A in the Artboards flyout selects every artboard.
- Presses in Export for Screens land on the control under them again (a tile grid measured too narrow clipped the pane).
- VectorCraft Modern's selected, pressed and disabled colours take production's values.
App changes that follow the framework:
- Properties dialogs pass their key to `PropertiesDialog::new`; hosted parameter dialogs take footer presses through `take_action`; the Print dialog reads and sets the Settings destination; job queues keep the default order; Preferences custom rows report changes; Home's Learn section uses `StartScreen::app_section`; `ui.screenshot` replies with `ScreenshotParams`; the Appearance list copies on Alt drag through `ReorderRule::copy_with`; the Character panel gives the font picker its settings; Zoom with Mouse Wheel picks the canvas `WheelScheme`; Recovery reads the `RecoveryChoice` answer.
- The document canvas takes arrows with every modifier (Alt+arrow copies, Shift+arrow nudges ten), and an arrow bound to an app command runs it.
- The toolbar drawer takes a tool dragged off its slot (`RemoveFrom`, `MoveFrom`).
- Number fields show percentages whole ("60 %") and lengths to a thousandth of a point, as production did (`NumberPrecision::Measured`).
Tests rewritten (assertions unchanged): the three file-drop tests run the pass the drop asks for; the Appearance Characters test clicks the link by role.
Checks: `vectorcraft-ui-egui` lib tests 3775 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
The port's window looks closer to production's VectorCraft (0.18 and its source), and the app's live screenshots work again.
Icons
- The app's icon and cursor sets are registered when the app is made (`VectorcraftApp::new`), so the web build, the tests and offscreen renders draw them, as the desktop app does.
- Each tool command carries its tool's icon, so the tool rail and its flyouts draw the tools instead of the "more" glyph.
- The hint bar's help icon is drawn (`dc-help`, a question mark in a circle, which no set had).
Screenshots
- `ui.screenshot` captures are issued from the app's kept UI passes, and the app repaints until they are issued; before, every capture timed out after 8 s. New test `tests::automation::a_screenshot_is_issued_by_the_apps_frames_and_written`.
Title bar and tabs
- Home is a bare icon toggle without the options-bar rule; the window title shows only beside the macOS menu bar.
- The Discord button is a soft neutral button with a border.
- Document tabs drop their own `*`, since the strip's modified mark shows it.
Properties panel
- Section headings in label text; form labels with colons beside fields that keep their own width; the Character section keeps its panel layout.
- Rotate and Shear show their icon and keep their own width; the Constrain Pie Angle link sits beside the pie angle fields.
Buttons and the Contextual Task Bar
- Push buttons have production's 4-point corners (the app's sizes set `radius.button`), so they are as narrow as production's.
- The task bar's actions are outlined push buttons.
Artboards panel
- Select All's keys select every artboard only while the list is drawn with the keys.
Checks: `vectorcraft-ui-egui` lib tests 3772 passed, 3 failed. The 3 failures also fail on `main` and need a newer craft-libs (Save for Web palette, two Select All tests). Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
VectorCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (`next`; the framework side is storytold/craft-libs#2809), as PhotoCraft's did. The app keeps its engine, document model, file formats, commands and automation; its windows, panels, bars, dialogs and canvas are now built and driven by the framework: shell, docking and panels, hosted dialogs, keyboard, focus, IME and pointer routing, and theme tokens.
About 264,000 lines of VectorCraft's own egui UI code are removed and about 154,000 added. craft-libs is pinned at bf62d509f (in `next`), the egui fork at f5025284.
Tests that drove the old UI were rewritten against the port where only their premise changed, with their assertions kept. The UI tests still failing at merge, and their follow-ups, are listed in the pull request.
* Type: NHM Writer's legacy Tamil keymaps (symbol fonts) type their characters on Windows
NHM Writer's legacy Tamil keymaps (e.g. "Tamil Phonetic StmzhRgb" for
SR-Tamil fonts) post each byte as a WM_CHAR of U+F000 + byte, Windows'
symbol-font convention. egui-winit's is_printable_char rejects the
Private Use Area, so the Type tool got nothing (only the tool's
Backspace presses arrived).
windows_symbol_chars notes U+F020..=U+F0FF characters in winit's message
hook, in order with Backspace presses, and hands them to the frame as
Event::Text, unchanged (symbol fonts map exactly these code points),
each before the Backspace press that followed it. Unchanged matters:
as Latin-1, byte 0xAD (SR-Tamil's ஷ) would become U+00AD, a soft hyphen
the text engine never draws.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY4wMcmnVnfGn5yC3dDic2
* Contributors: add my display name (HASAN CGI)
* Type: symbol-font characters keep their order among all typed text and keys; no new unsafe
Review of #6930: windows_symbol_chars now notes every character and key
press the window gets, not only Backspace, and places each symbol-font
character before the text or key press that followed it (a symbol then
an ordinary character, or a symbol then a navigation key, no longer
swap). It no longer has a message hook of its own: windows_alt_codes's
existing msg_hook, which already reads each MSG, hands it the message,
so the module has no unsafe code. Tests cover symbol/ordinary-text and
symbol/navigation sequences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY4wMcmnVnfGn5yC3dDic2
* Revert "Contributors: add my display name (HASAN CGI)"
This reverts commit 78ff9cbb2a.
* Type: rustfmt order for mod windows_symbol_chars
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Rule 10: every storytold/craft-libs crate is at the same rev, now
205042e406b630cda653990649264a78fea6296b, the merge of #3136 on
craft-libs main. That rev still skips a form already on the drawing
stack (ISO 32000-2 §8.10.1) but no longer reports it as
ContentTruncated, so a 200-shape knockout-mask PDF imports completely.
Also moves the leftover per-crate pins of craft-font-catalog and
craft-web-api onto the same rev.
When the work area is smaller than the smallest window (800 x 500
points), `place` fits the restored window to it, but the native
minimum inner size from `native_options` stayed at 800 x 500, so the
system kept the window bigger than the work area. `restore` now lowers
the minimum to the fitted size in each dimension where it is smaller,
and keeps the normal minimum where the work area has room for it.
The monitor list for floating panels now carries each monitor's work
area: rcWork from GetMonitorInfo on Windows, and visibleFrame on macOS,
turned into the top-left origin and physical pixels of the monitor's
rect. The work area is converted to points with the same scale and zoom
as the rect, and craft-ui uses it to decide whether a reopened panel's
title bar can be grabbed and where to move it. A work area with no width
or height is left out.
Restoring the main window now keeps it inside its monitor's work area
too, so a window saved at the top edge of a monitor with a taskbar along
its top opens below the taskbar, and a window taller or wider than the
work area is made to fit it, with room for a system title bar and
border when the window has them.
On Windows the panel list stays empty when the monitors have different
scale factors, as before, and a build without the wgpu feature reads no
work areas. Linux and the BSDs keep the whole monitor rect.
A frame that finds Use Monitor Profile for Canvas off drops a waiting
request; a request made with the preference on is kept when the
preference goes off and on again between two frames.
Overrides::is_set is only called from main under cfg(not(macos)), so it is allowed to be unused there (the repo's cfg_attr pattern). settle_cut_edges walks blended with iter_mut().enumerate() instead of indexing it.
Every storytold/craft-libs git dependency, the hayro, krilla and
linesweeper patches and the web app's craft-web-api now use one
revision, 64b181977a, so Cargo.lock holds one copy of each craft-libs
crate. craft-ui's docking Monitor has a new work_area field; the
monitors VectorCraft lists set it to None, as winit reports no work
area.
Preferences › Performance › Low-Latency Drawing (lowLatencyDrawing, off by
default) is read when the app starts and asks for wgpu's AutoNoVsync. The
present mode comes from --present-mode, then VECTORCRAFT_PRESENT_MODE, then
the preference, then the default; with the preference off and no override
the window surface is unchanged. The startup log names "(preference)" or
"(override)" after the mode.
Whenever the window presents without vsync, from the preference or an
override, main-window frames start at most 240 times a second (about
4.17 ms apart). The wait comes before egui reads the frame's input, and
the frame's time moves on by it. With vsync the display paces the frames
and no cap applies.
The checkbox shows on the desktop with the note that it applies the next
time VectorCraft starts. A value that is not a boolean is an error.
Fixes#6013
The Windows sampler read the pointer with GetCursorPos when it handled
WM_LBUTTONUP, so a pointer that moved after the release picked a
different pixel. It now takes the point from the release message's
lParam, a signed client point, and converts it to screen coordinates.
lParam holds each coordinate in 16 bits, so on a virtual screen wider
or taller than 32,767 pixels the high bits come from the message's own
pointer position (MSG.pt).
Windows had no screen color sampler, so the Color Picker's eyedropper
button was gray and ui.sampleScreenColor returned an error there.
The new sampler copies the virtual screen (every monitor, including
ones at negative coordinates and at other display scales) and covers it
with a borderless topmost window that shows the copy under a crosshair.
A left click picks the copied pixel, read as sRGB. Escape, a click of
another mouse button, Alt+F4 or switching to another window cancels.
The window runs on its own thread, so the app keeps drawing, and the
copy's size is checked before it is allocated.
Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md
and the ui.sampleScreenColor params text.
Use Monitor Profile for Canvas reads the display's profile every 10
seconds and when the window moves to another display. The new command
view.refreshMonitorProfile (Edit › Refresh Monitor Profile, after Assign
Profile…) makes the next frame read it at once, past both the 10-second
reading and the 1-second display check. A request made while a reading
runs waits for that reading to end and then starts.
The command returns {requested: true} before the profile is read, and
ui.inspect's displayProfile reports readRequested while the request
waits. It is off and returns an error while the preference is off
(nothing is queued) and where nothing reads the display's profile (the
web build). It changes no document, proof setting or preference.
The reading thread now clears its busy flag before it asks for a
repaint, and it also asks for one when a request is pending.