Commit Graph
12265 Commits
Author SHA1 Message Date
dotCooCoo d0d96eb81b ui: a combo box narrows below its widest option, as a text field does
A combo box measured its least width as its widest option, its current
text and its placeholder plus the chevron, at every proposal. A text field
at its least shows a short part of its text and scrolls the rest. In a grid
whose fill columns did not fit beside each other at their leasts, a combo
box of long options made the grid stack its cells one under another while a
text field in the same place would have narrowed. At its least the combo box
now counts only the chevron's room; its natural width is unchanged.
2026-11-28 23:40:55 -08:00
Dylan M. Taylor db0b5931e2 Merge pull request #4232 from storytold/deps/egui-numpad-physical
Pin egui at 5dded175 (numpad keys' physical identity, storytold/egui#48)
2026-11-29 01:46:47 -05:00
BFlat 869c9704d9 Merge pull request #4233 from dotCooCoo/fix/length-slider-access-step-main
slider_field: a length field declares the key policy's accessibility step
2026-11-29 13:23:10 +07:00
David Mann f1b53230ac Merge pull request #4160 from davidmann4/fix/layer-style-stroke-emboss
Layer Style: offer Stroke Emboss in the Bevel & Emboss Style menu
2026-11-29 07:22:01 +01:00
BFlat 26ec225e83 Merge pull request #4006 from hnoerenberg/fix/screen-mode-tab-chrome-16841
fix(ui-shell): Tab in standard screen mode hides only the editor chrome (photocraft #16841)
2026-11-29 13:14:51 +07:00
BFlat c3672bd709 Merge pull request #4220 from dotCooCoo/feat/wheel-gesture-modal-and-keys
ui: a wheel share carries the keys held during its gesture and whether a modal held it
2026-11-29 13:01:53 +07:00
BFlat 8e7977a7de Merge pull request #4229 from dotCooCoo/fix/accounts-lock-mtime-test
suite-account: the lock test checks the real modification-time change of a full hold cycle
2026-11-29 13:01:37 +07:00
BFlat 4aef487a0c Merge pull request #4231 from dotCooCoo/fix/form-dialog-radio-control-column
form_dialogs: a radio row's options start in the control column
2026-11-29 13:01:31 +07:00
dotCooCoo e52b2aa562 slider_field: a length field declares the key policy's accessibility step
With lengths set, the number field was built without the key policy's
amount, so its accessibility step was the field's own step. The amount is
in the stored unit, and the length field now declares it converted to the
shown unit; a pair with no scale declares it unchanged, as the field shows
the stored value there.

Tests: a field over points shown as inches on a 12 pt step declares a
36 pt amount as 0.5 in and its increment adds 36 pt. Two more tests cover
the scrub rate and the number codec on a length field: 40 points at
0.03 in a point scrub to 158.4 pt, and a reader that doubles bare input
reads "3" as 6.
2026-11-28 21:57:26 -08:00
Dylan M. TaylorandClaude Opus 5.5 dbcb698ac0 Pin egui at storytold/egui#68's merge commit 5dded175 (numpad keys' physical identity, egui#48)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 05:52:14 +00:00
BFlat 44fd7d56f8 Merge pull request #4215 from dotCooCoo/fix/range-row-length-unit
form_dialogs: a Range row with Param::length shows its value in the shown unit
2026-11-29 12:51:54 +07:00
BFlat 711288f873 Merge pull request #4228 from dotCooCoo/fix/automation-socket-test-timeout
automation: the control tests wait up to a minute for the server before failing as hung
2026-11-29 12:40:48 +07:00
dotCooCoo d0aec1f939 ui: a wheel share's held keys and modal mark cover a rotation start, a folded pinch step and a modal's wheel before a press
A gesture that a rotation or a touch begins now counts a key tapped
after that event in the same pass: the span of events read for a new
gesture started only at a wheel or zoom event.

The End share of a gesture a press closes now carries the Ctrl of a
Ctrl+wheel that was folded into a pinch step before the press. The
folded step is a zoom event, which has no modifiers of its own.

The End share of a gesture a press closes is now marked modal when a
modal held a wheel or zoom event that arrived before the press in the
same pass. The mark was taken before the pass's wheel was recorded.

A trial covers each case, with the event after the boundary or the
press as the counter case.
2026-11-28 21:36:14 -08:00
dotCooCoo 8a2729d7c8 form_dialogs: a radio row's options start in the control column
In a form whose rows share a label column, a radio row started at the
form's left edge, in the label column, while the check boxes and the
fields of the other rows started past it. A radio group lays out apart
from the label column of the form around it, so its radios never read
the column.

A radio row now shows its group in a field with a hidden caption, in
each of its three layouts (a caption over the options, stacked_options
and options_in_row), so the first radio starts where a check box row
starts. A radio row in a shared line and a row nested under an option
stand where they stood. A document form without a shared caption column
is unchanged.

The new test shows a text row, a check box row and a radio row in each
layout, and compares where the check box label and the first option
start.
2026-11-28 21:33:54 -08:00
bflatastic b75890b273 slider_field: a length field keeps the scrub rate and the number codec
The length branch returned before scrub_step and number_codec were applied; both now go through finish_field, which the plain field and the length field share.
2026-11-29 12:26:02 +07:00
BFlat 7ea27925bd Merge pull request #4226 from dotCooCoo/fix/native-tab-tooltip-stage-id
ui-contract: a child window egui opens again starts its pass records anew
2026-11-29 12:17:08 +07:00
BFlat fca519073e Merge pull request #4227 from dotCooCoo/fix/stroke-editor-host-labels
draw: StrokeEditor::host_labels lines its rows up with the host's field group
2026-11-29 12:16:44 +07:00
BFlat 9af755708d Merge pull request #4225 from dotCooCoo/fix/row-measure-zero-height-width
ui-contract: a leaf that measures zero on one side keeps its other side in the body
2026-11-29 12:16:39 +07:00
BFlat d610a4c03c Merge pull request #4224 from dotCooCoo/fix/task-bar-more-stays-on-row
ui: a wrapping bar narrows its selects to fit one line before it wraps
2026-11-29 12:16:34 +07:00
BFlat 9c93396828 Merge pull request #4222 from dotCooCoo/fix/tool-rail-regular-pitch
ui-panels: a regular tool rail steps its buttons by the rail button size, and its footer can scroll
2026-11-29 12:09:06 +07:00
dotCooCoo 9f30d146ab suite-account: test a full cycle of real lock holds for the changed mark
The test that tells apart two holds leaving the same length now backdates
the lock file, runs HOLDS real holds, each on its own locked handle, and
checks that the length is back where it started while the modification
time has moved. Before, the test set the time itself, so it passed whatever
the hold did to the file. The length update moves into mark_hold, which
with_lock and the test share.
2026-11-28 21:06:21 -08:00
dotCooCoo cf73dec466 automation: the control tests wait up to a minute for the server before failing as hung
The socket tests in tests/it/control.rs bounded each read and each
channel wait at 5 seconds (10 seconds for the capture client's
requests). The server sends every reply, close and request there
without waiting on a timer, so these bounds only guard against a hang,
but a slow run could reach them: under heavy load
an_oversized_reply_keeps_its_framing_and_id_and_the_connection_serves_on
failed at its 5-second read timeout and passed when run again.

- control.rs waits with one HANG constant of 60 seconds, the bound the
  agents tests already use as a hang guard (tests/it/agents.rs:53).
- The client test that peeks for the server's refusal line waits up to
  60 seconds too.

The assertions do not change.
2026-11-28 21:06:20 -08:00
dotCooCoo d1dbb74d0c form_dialogs: a length Range row's field steps and snaps by the set step
A Range row with Param::length and Param::step kept the step for the
slider only. The permanent row's number field stepped by the shown
unit's default, and the popup row's field stepped by the set step but
did not snap typed values to it.

SliderField now converts a set step from the stored unit to the shown
unit for its length field and snaps typed values to it unless
typed_decimals is set. Without a step the field keeps the shown unit's
own step. The length field also takes the slider field's pointer
modifiers, which the plain field already does. The popup row's length
field snaps typed values to its set step.

With points stored, inches shown and a step of 144 pt, Up on either
field moves 2 in, and typing 1.4 stores 144 pt.
2026-11-28 21:03:19 -08:00
Martin BallandClaude Opus 5.5 134155e1fb ui-test-kit: a test can focus or close one of several child windows (C5-8) (#3722)
Windows::focus, ::close and ::child_facts target one child viewport; the
other children keep their facts and get no close request.


Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 05:02:40 +00:00
dotCooCoo c5af543051 ui: a wheel gesture's End share carries a key tapped before the press that ends it
A pass that held a modifier's press and release and then the primary
press that closed a running wheel gesture left the modifier out of the
End share: the gesture's held modifiers were read before the pass's own
events were merged, and the close reset them.

pass_held_mods takes a span, and the new ToPress span reads the events up
to and including the pass's first primary press. The begin hook merges
those modifiers into the End share when a press closes a running gesture.
A plain press, and a key tapped after the press, add no modifiers.
2026-11-28 20:59:15 -08:00
dotCooCoo 04bb4d1bb8 Merge main into fix/range-row-length-unit 2026-11-28 20:58:38 -08:00
dotCooCoo c34f5d15a0 draw: StrokeEditor::host_labels lines its rows up with the host's field group
A host that shows the stroke editor inside its own FieldGroup, next to
rows of its own, got two label columns. The editor put its Alignment,
Caps, Corners, Miter limit and Opacity rows in a FieldGroup of its own,
and the Dash offset row in another, so their controls started at the
editor's widest label instead of the host group's.

StrokeEditor::host_labels(true) shows those rows in a stack that fills
the width, which passes the host group's label column through. The
controls of the editor's rows, the app's choice rows and the Align
dashes row then start where the controls of the host's rows start. The
default is unchanged: without the option each group keeps its own label
column.

Test: host_labels_start_the_editor_rows_at_the_host_groups_control_edge
in crates/draw/tests/it/stroke_editor.rs.
2026-11-28 20:54:53 -08:00
dotCooCoo a02d2b71da ui-contract: a child window egui opens again starts its pass records anew
egui drops a child viewport that a pass of its parent leaves out and
counts the passes of the viewport it opens again under the same id from
zero, while the window stays open and the runtime keeps its records. A
record stamped with a pass number from before could then match a later
pass of the new count and keep that pass's state. In debug builds a tab
tooltip shown in a popup window from a native palette's flyout tripped
"an id is the base of two open stages in one pass" after the pointer
moved from one tab to the next, because the tooltip window closed and
opened again under the same id.

The begin hook now records each viewport's latest pass number. When a
pass begins with a number no higher than it, the viewport's pass-stamped
records are dropped before the pass runs.
2026-11-28 20:53:45 -08:00
dotCooCoo 9d91223839 ui-contract: a leaf that measures zero on one side keeps its other side in the body
The size guard marks a leaf with a zero side as inert, and place_root
placed every inert component at a zero size. egui still added the item
spacing for that allocation, so a content-sized Row counted the gap
before an 8 x 0 leaf but not its width, and a popup sized from the
measuring run cut the leaf off at its edge.

place_root now places an inert component at its measured size when the
size is finite and in range. A size the guard rejects for every shape
still takes no room, and the leaf stays inert.
2026-11-28 20:53:10 -08:00
dotCooCoo baa23a591f ui: a wrapping bar narrows its selects to fit one line before it wraps
A bar made with `Bar::wrap` sent a member to a new line as soon as the
members' natural widths passed the bar, without first narrowing its
selects the way a bar that does not wrap does. A canvas task bar with
type selected (three buttons, the font family, style and size selects,
the paint chips and the More button) was a little wider than the canvas,
so the More button went alone onto a second line and the bar spread to
the full width of the canvas.

A wrapping row in a bar now runs a counting sweep in its measuring run.
When its members are too wide for one line at their natural widths but
fit it at their least, the row narrows them by the same shrink step as a
bar row that does not wrap, from the end, and keeps them on one line.
Members leave by rank only in rows that do not wrap. When even their
least does not fit, the row wraps as before. Wrapping rows outside a
bar are unchanged.

The shrink step's settle closure in `run_shrinking` moves into
`settle_shrink` so both rows use it.
2026-11-28 20:51:57 -08:00
BFlat 8bea6009f9 Merge pull request #4216 from dotCooCoo/fix/held-confirm-same-id-reply
automation: a held confirm waits for the dialog it confirmed when another dialog shares its ID
2026-11-29 11:42:33 +07:00
BFlat 442e1b73ad Merge pull request #4214 from dotCooCoo/fix/field-help-wraps-to-control-width
ui-contract: a field's help line keeps its last line above the widest label
2026-11-29 11:42:28 +07:00
BFlat c1e6c1c1f2 Merge pull request #4211 from dotCooCoo/fix/path-row-test-checks-column
ui-patterns: the path row test checks the Browse button against the column width
2026-11-29 11:42:22 +07:00
BFlat be97da8f59 Merge pull request #4210 from dotCooCoo/fix/still-pointer-no-stir
pointer: a move to the position of the last move does not stir the pass
2026-11-29 11:42:18 +07:00
dotCooCoo 1ed622422a ui-panels: a regular tool rail steps its buttons by the rail button size, and its footer can scroll
A regular tool rail stood its buttons 32 pt apart in the compact sizes:
each button was `size.rail.button` (30 pt) square and the tight gap
(2 pt) came on top. `RailDensity::Regular` buttons are now
`size.rail.button` less `space.gap.tight` square, so a button and the
gap after it take `size.rail.button`. The dock grid's rail columns
follow the same width.

`ToolRail::footer_scrolls` puts the host's footer under the slots inside
the scroll region, after the same divider rule and gap, so in a rail too
short for its rows and footer the footer scrolls with the tools. Without
it the footer stays pinned as before.
2026-11-28 20:28:21 -08:00
dotCooCoo bb7cc548d2 ui: a modal's open canvas admits only wheel events, as before 2026-11-28 20:23:52 -08:00
dotCooCoo a29ccbc1fb ui: a wheel share carries the keys held during its gesture and whether a modal held it
Wheel gains two fields. held is the modifiers held at any point of the
running gesture: those of its wheel events, of key events between them,
and of a key tapped between a swipe's device end and the momentum run
that resumes it. modal is set when a wheel event of the gesture, or one
less than GESTURE_GAP before it began, arrived while a modal layer held
the wheel, in the same window or in another. A canvas can then leave
the rest of a turn begun under a dialog alone after the dialog closes,
and apply a rule such as Shift tapped mid-gesture.

End shares carry the held and modal values of the gesture they end.
2026-11-28 20:08:12 -08:00
dotCooCoo 9bc5780eaf canvas: a tool that takes every move gets a move to the last move's position
With a repeated move no longer stirring the pass, drag_moves returned before every_move, so a tool that takes every move lost the drag call for a move to the position of the last move during a drag. drag_moves now hands the pass's moves to such a tool first, and gives any other tool its single drag only when the pass is stirred or the pointer is in the edge band.
2026-11-28 19:48:49 -08:00
dotCooCoo e7d4d7e3e5 form_dialogs: a Range row with Param::length shows its value in the shown unit
Only Number rows read Param::length, so a Range row over points showed
points in an inch or millimeter document.

- SliderField::lengths makes its number field a length field: it shows
  and reads the value in the shown unit at that unit's step and
  decimals, while the binding, the range and the slider stay in the
  stored unit.
- Range rows pass Param::length to their SliderField. A popup-slider
  range row builds a length field too, and a set step, which is in the
  stored unit, steps the field by the same length in the shown unit.
2026-11-28 19:46:38 -08:00
dotCooCoo e05914e768 ui-contract: a field's help line keeps its last line above the widest label
While a measuring run lays out a field group, a row only sees the label
column that the rows before it reported. A check box row with its label
after it, above the first row with a side label, saw no column. A row
beside a label narrower than the widest saw a narrower column. Both
measured their help line wider than the control column of the real run,
so the footer was sized for fewer lines and the last line was cut off.

The label step now notes the column such a row read when the row has a
help line, so the group runs its rows again at the final widths. This
covers a label after the control, a label beside it and a hidden side
label.
2026-11-28 19:45:58 -08:00
dotCooCoo 929dc7b794 ui-patterns: the path row test checks the Browse button against the column width
The fixture's shown rect grows with whatever the row allocates, so a
button that overflowed the column also widened it and the check passed.
The room starts at x = 0, so the test now compares the button's right
edge with the requested width.
2026-11-28 19:28:09 -08:00
BFlat 07a8c471ed Merge pull request #4197 from dotCooCoo/fix/accounts-lock-per-hold
suite-account: the accounts lock timeout applies to one hold, not the whole wait
2026-11-29 10:10:50 +07:00
BFlat a2a619deb8 Merge pull request #4196 from dotCooCoo/fix/tiff-wide-fax-stack
image-codecs: zero TIFF buffers in pieces of at least 1 MiB so wide pools do not overflow a worker stack
2026-11-29 10:10:46 +07:00
BFlat 35dffdafb2 Merge pull request #4198 from dotCooCoo/fix/disabled-text-field-actions
ui-contract: a disabled editor reports its text runs as disabled
2026-11-29 10:10:41 +07:00
BFlat 32b74382da Merge pull request #4200 from dotCooCoo/fix/status-menu-popup-floor
fix(ui-shell): open status bar menus right above their control
2026-11-29 10:10:36 +07:00
BFlat 78cac93016 Merge pull request #4180 from dotCooCoo/fix/page-card-resting-tile
ui-widgets: page cards can rest on a tile
2026-11-29 10:10:32 +07:00
BFlat 2821143c30 Merge pull request #4199 from dotCooCoo/fix/glyphs-footer-inside-panel
font-manager: the Glyphs footer stays inside the panel under the grid
2026-11-29 10:10:27 +07:00
BFlat c1e9abeb8b Merge pull request #4205 from dotCooCoo/fix/flyout-tear-off-grip-clipped
ui-panels: a tool flyout is wide enough for its tear-off bar and draws its grip
2026-11-29 10:10:22 +07:00
BFlat 295a24d1cc Merge pull request #4204 from dotCooCoo/fix/path-row-browse-button
ui-patterns: a path row keeps its Browse button whole in a narrow column
2026-11-29 10:10:18 +07:00
BFlat 3e70030818 Merge pull request #4201 from dotCooCoo/fix/tile-grid-rule-heads
ui-widgets: a tile grid's rule divider sits midway between its groups
2026-11-29 10:10:13 +07:00