The Paragraph Style Options Tabs buttons, the Script File Access list, Split Into Grid's
fields and the 3D Bevel heading are framework components, as the rest of their dialogs are.
- Paragraph Style Options › Tabs: Add, Delete Tab and Clear All Tabs are framework buttons
in a row.
- Script File Access: the list of picked files is a scrolled stack named "Picked files",
up to 120 pt high before it scrolls. New test
`tests::script_run::a_scripts_file_dialog_lists_several_picked_files_in_a_named_group`.
- Split Into Grid: the fields are a framework grid of two columns, rows on the left and
columns on the right; before, the egui grid inside the form drew the Columns fields over
the Rows fields. New test
`dialogs::tests_accessibility::split_into_grid_lays_out_its_fields_above_add_guides`.
- 3D Bevel: the heading is a section named Bevel with Reset as its control. New test
`dialogs::revolve::tests::the_bevel_heading_is_a_section_between_cap_and_bevel_shape`.
Zig Zag's Ridges per segment, the bevel's Repeat and Revolve's Segments are counts and show
no unit after the number, as production's did; before, Ridges showed a percent sign and
Repeat and Segments showed px. Roughen's Detail no longer shows a percent sign either.
Production showed "/in" after it, and craft-libs has no per-inch count unit for that yet,
so it shows no unit. New tests
`dialogs::effect::tests::zig_zag_ridges_and_roughen_detail_show_no_percent_sign` and
`dialogs::revolve::tests::the_bevel_repeat_and_the_revolve_segments_show_no_unit`.
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.
More Settings no longer replaces the dialog with a form that repeats Preset
Details. It opens a pop-up over New Document with only Number of Artboards,
the four layout buttons, Change to Right-to-Left Layout, Spacing and
Columns, editing the same fields live. Done, Escape and a click outside
close it and keep the values; the click outside does not reach the dialog
under it. Enter in a field applies it and closes the pop-up. The old form's
Templates… button is removed with it; File > New from Template opens
templates.
Save Preset no longer adds a Preset Name row under the document's name. It
replaces the top of Preset Details with a Save Document Preset heading, the
preset's name (focused, text selected), Cancel and Save, and hides the
document's name, Close and Create. The rows under it stay where they are
and editable, and Save stores them. Enter in the name saves; Escape is
Cancel and keeps the edits. Nothing creates a document in this mode: a
double-clicked preset card, Enter elsewhere and ui.dialog.confirm (which
saves). A single click on a card fills the fields, as outside the mode.
Save Preset's default name is now the first "Preset N" that no saved
preset has, and it is offered again after each save. Before, it was
"Preset <count + 1>", and after a save the field kept the saved name, so
pressing Save could replace an existing preset. A name typed by hand still
replaces a preset of the same name, as before.
Enter creates the document on a new press only, so a held Enter's repeats
after a save do not create one.
The newDocumentMore dialog kind, presetName and __saving keep working for
the control protocol (ui.click on More Settings opens the pop-up);
docs/control-protocol.md describes them. The catalog rows of the removed
form's strings are removed.
The fields under Preset Details had captions drawn above them but no accessible name. Each field is now named by its caption, and the units dropdown beside Width is named Units. Preset Name is also named in More Settings.