Commit Graph
7 Commits
Author SHA1 Message Date
dotCooCoo 916ea13906 Merge main into fix/reset-preferences-interface-settings 2026-11-25 10:07:37 -08:00
dotCooCoo ee9b2cfd03 Dialogs: rows of controls in dialogs and add-ons are framework Rows and Stacks, so a dialog takes the width of its rows
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.
2026-11-24 14:17:19 -08: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 6f37bd839c VectorCraft on the craft UI framework (#8800)
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.
2026-11-24 08:25:24 +07:00
dotCooCoo 9562ed9b04 Preferences: Reset Preferences resets Smart Guides, Snap to Grid and the Contextual Task Bar
The Preferences dialog shows Smart Guides, Snap to Grid and General's Enable
Contextual Task Bar, but the app keeps them with the interface state, and
Reset Preferences left them as they were. Confirming Reset Preferences now
puts their defaults in the dialog with the other defaults: Smart Guides on,
Snap to Grid off, and the task bar as the current workspace was saved. OK
applies them and Cancel keeps the values in use. On a touch screen, where
the reset turns Enable Touch Workspace back on, OK sets the task bar in the
workspace it leaves, and the Touch workspace keeps its own.

prefs.reset (the Command Palette's Reset Preferences), alone or as a
command.batch step, resets them too, each only when it resets every category
or the setting's own (Smart Guides, Guides & Grid, General). With every
category or File Handling it also clears the app chosen for Edit Original, as
the dialog's reset does. The engine records the categories it reset
(Session::take_prefs_resets), and the app resets its own settings from them
after each command, each frame, and before a touch screen switches to the
Touch workspace.

A category that is not a string is now an error instead of a reset of every
category.
2026-11-22 16:56:25 -08:00
ruchirguitar 0858c0d516 Merge main into feat/5804-private-editor (#5804) 2026-11-19 01:46:48 +05:30
ruchirguitar b7241253bb 5804: select a raster editor through the native picker 2026-11-09 14:35:13 +05:30