Commit Graph
4 Commits
Author SHA1 Message Date
dotCooCoo 6ff807f7b1 Merge main into fix/dialogs-framework-widgets 2026-11-24 22:55:45 -08:00
dotCooCoo db7810888d Dialogs: four dialogs use framework components, and count fields show no unit
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`.
2026-11-24 17:42:32 -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 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