diff --git a/docs/ui-dialogs.md b/docs/ui-dialogs.md index 634c7711a0..06cc4fee14 100644 --- a/docs/ui-dialogs.md +++ b/docs/ui-dialogs.md @@ -45,6 +45,7 @@ Dispatch order matches `dialogs::show` in `dialogs.rs` (check earlier rows befor | Match | Module | Role | |---|---|---| | `__guideLayout` | `guide_layout_ui.rs` | View › New Guide Layout… | +| `__newGuide` | `new_guide_ui.rs` | New Guide / Edit Selected Guides; position with a unit dropdown | | `__fill` | `fill_ui.rs` | Edit › Fill… | | `__patternFill` | `pattern_fill_ui.rs` | Pattern Fill layer / New Fill Layer › Pattern… | | `__stroke` | `stroke_ui.rs` | Edit › Stroke… | @@ -74,6 +75,13 @@ actions with their marker already set. ### Shared private keys +New Guide and Edit Selected Guides open in the ruler unit and offer Pixels, Millimeters, Inches, +Centimeters, Points, Picas and Percent beside Position. Selecting a unit converts the draft using +the active document's resolution without moving the guide. Bare numbers use the selected unit +(`__unit`, a suffix such as `px`, `mm` or `in`); a typed suffix overrides it. Decimal commas are +accepted. Percent uses width for vertical guides and height for horizontal guides. OK dispatches +the existing guide command; Cancel discards the draft. + | Key | Meaning | |---|---| | `__command` | Engine command id run on OK (bare confirm, filters, sizing, …) | @@ -97,6 +105,7 @@ actions with their marker already set. | Key | Module | |---|---| | `__guideLayout` | `guide_layout_ui` | +| `__newGuide` | `new_guide_ui` | | `__fill` | `fill_ui` | | `__patternFill` | `pattern_fill_ui` | | `__stroke` | `stroke_ui` | @@ -216,6 +225,7 @@ Same hub entry as standalone pickers; `color_picker_ui::confirm` branches on ext | Date | Change | |---|---| +| 2026-10-27 | New Guide / Edit Selected Guides: visible position unit dropdown and resolution-aware conversion | | 2026-10-11 | Initial doc from dialog codebase audit | | 2026-10-11 | Document all `DialogKind` values and `Command` routing markers | | 2026-10-11 | Alt+Cancel → Reset hub (`dialog_alt_reset`); opt-in markers |