Dialogs: drag a value's label sideways to change it (#2217) (#9685)

* claim: #2217

* Dialogs: drag a value's label sideways to change it (#2217)

A value row's label (expr_row, hint_row) now scrubs a literal value: about a
hundredth of its size per point of drag, on that step's grid, Shift ten times
finer, Ctrl/Cmd ten times coarser. The unit and decimal mark stay as typed, a
size never turns negative, and expressions and parameters are left alone. The
text changes as if typed, so previews follow and OK still makes one command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Label drag: measure from the press point, cap values, keep scrub kit-private

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PaddleStroke
2026-11-04 22:10:04 +00:00
committed by GitHub
parent 09bb8aaaf5
commit 08fa042039
4 changed files with 218 additions and 6 deletions
+4
View File
@@ -98,6 +98,10 @@ rules. Its compass is 110 pt; the 48 pt Shots strip clears the docks by 8 pt.
`hint_row` for a value the form checks before it runs: with a warning, the field is outlined in
the warning colour and the message sits under it (`warning_caption`), so colour is never the
only cue.
The label of an `expr_row` or `hint_row` scrubs: dragging it sideways changes a
literal value (`20 mm`, `45°`) by about a hundredth of its size per point, on that step's
grid, Shift ten times finer and Ctrl/Cmd ten times coarser. It keeps the unit and decimal
mark as typed, never makes a size negative, and leaves expressions and parameters alone.
- `Panel::workspace` owns grip-based left/right placement and bounded width resizing for
floating workspace cards, including in Compact ribbon layouts. It reuses the 40 pt
Panel/Window header and padded body, with no second top inset below the ribbon.