Commit Graph
12291 Commits
Author SHA1 Message Date
BFlat 186a229c8d Merge pull request #4259 from dotCooCoo/fix/color-panel-cancel-restore
color-ui: ramp, hex, readout, gamut chip and well edits start from the host's complete color
2026-11-29 20:25:11 +07:00
BFlat abb4ad8cc9 Merge pull request #4251 from dotCooCoo/fix/automation-readonly-field-edits
shortcuts: automation cannot press, assign or remove a shortcut where the user cannot edit one
2026-11-29 20:25:06 +07:00
BFlat bec8baa0d3 Merge pull request #4239 from dotCooCoo/fix/paragraph-controls-measure-host-rows
text: the Paragraph controls' host rows count in their measured height
2026-11-29 20:25:00 +07:00
BFlat fa4d56bb89 Merge pull request #4240 from dotCooCoo/fix/line-label-centers-on-control
ui-contract: a Line field's label sits on its control's line inside a row
2026-11-29 20:24:54 +07:00
BFlat e18f4d8819 Merge pull request #4242 from dotCooCoo/fix/palette-pinned-top
ui-patterns: the command palette keeps its top and field in place as the query changes its rows
2026-11-29 20:24:48 +07:00
BFlat 8e6ba308e7 Merge pull request #4247 from dotCooCoo/fix/combo-box-least-width
ui: a combo box narrows below its widest option, as a text field does
2026-11-29 20:24:43 +07:00
BFlat b48026cb3e Merge pull request #4261 from dotCooCoo/fix/properties-dialog-measuring-tab
form_dialogs: a properties dialog keeps its bound tab when the body does not run
2026-11-29 20:24:37 +07:00
David Mann 955c64f119 Merge pull request #4263 from davidmann4/shortcuts-undo-toggle
menu: Keyboard Shortcuts dialog can offer one Undo button that steps the last change
2026-11-29 14:12:12 +01:00
David Mann f4ebe19d64 Merge pull request #4264 from davidmann4/fix/new-doc-advanced-options-14035
New Document: Advanced Options holds Color Profile and Pixel Aspect Ratio; the depth reads 32 bit (photocraft#14035)
2026-11-29 14:10:52 +01:00
David MannandClaude Opus 5.5 cb477ef88e New Document test: unfold Advanced Options past the double-click time, with the header found again
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:25:50 +01:00
David Mann 0526210afd menu: the undo toggle tests compare with the keys as stored, not as Windows shows them 2026-11-29 13:14:24 +01:00
David MannandClaude Opus 5.5 8d09ceca38 New Document test: fold Advanced Options without motion, so the check runs after the fold ends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:00:39 +01:00
David Mann 5dab5d4317 menu: a queued undo key no longer allowed is dropped, and the toggling button acts only as it reads 2026-11-29 12:51:26 +01:00
David Mann 0990990739 menu: the undo keys re-check after each step, so a second step in a frame cannot reach past the last change 2026-11-29 12:43:53 +01:00
David MannandClaude Opus 5.5 a959117beb New Document: Advanced Options holds Color Profile and Pixel Aspect Ratio; the depth reads 32 bit
The details pane puts Color Profile and Pixel Aspect Ratio in an Advanced Options disclosure under
Background Contents, open by default; folding it keeps their values. The float depth entry reads
"32 bit" (storytold/photocraft#14035).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:36:19 +01:00
David Mann ff93186c9f menu: Keyboard Shortcuts dialog can offer one Undo button that steps the last change
Options::undo = UndoButtons::Toggle puts one button in the footer in place of
Undo and Redo: it undoes the last change and turns into Redo, which applies it
again and turns back into Undo. Starting to record a shortcut disables it until
the next change, so it never reaches past the change before. The undo and redo
keys follow the button. The default (History) is unchanged.
2026-11-29 12:36:15 +01:00
dotCooCoo 3709b7690b form_dialogs: a properties dialog keeps its bound tab when the body does not run
PropertiesDialog wrote the shown tab back to its `tab` binding after
every pass, starting from tab 0. A pass in which the body did not run
(a measuring run that ends before the body, or a closed dialog) wrote
0 back, so a dialog bound to its second tab showed the first one after
its first frame. The tab is now written back, and Reset Panel applied,
only when the body ran.
2026-11-29 02:57:22 -08:00
Martin BallandClaude Opus 5.5 27c2cbf821 tests: pin the OS in two layout tests that fail on macOS (#4257)
Fixes #4256.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 10:32:25 +00:00
FredApps 9ad1dbf1b4 Retain unchanged UI registrations and keep worker repaints thread-safe (#4246)
* Retain unchanged UI registrations and keep worker repaints thread-safe

* Pin merged retained-paint egui with compatible paint visitors

* Verify edited owner state survives retained region transfers

* Seed retained-state regression through a writable stage

* Synchronize egui revision metadata and isolate the retained-state edit frame
2026-11-29 11:14:05 +01:00
dotCooCoo 1d935b0d93 color-ui: ramp, hex, readout, gamut chip and well edits start from the host's complete color
The Color panel gave the host's complete color (with its native components)
as the `before` of channel, cube and wheel edits only. The ramp, the cubes'
readout, the FillStroke hex field, the out-of-gamut chip and the Black and
White wells sent a `before` without the host's model values, so Undo of
those edits lost a host's typed CMYK. A ramp drag's Begin and Cancel
carried `Mixed`, so Cancel of a ramp drag left the live preview in place.

These edits now take the color the gesture began from, kept through the
host's live updates, or the current color for a one-step edit: the host's
`edited` color for the edited well, otherwise the well's color.
2026-11-29 01:59:06 -08:00
dotCooCoo 0029c5e434 shortcuts: automation cannot press, assign or remove a shortcut where the user cannot edit one
ShortcutsDialog::set_json_field refused `replace` in a read-only dialog,
while a prompt, review or recording was open, and on an app tab, but it
accepted `pressed`, `assign` and `remove` in those states.

DialogState::can_edit holds the condition `replace` already used, and
all four editing fields now return the inactive refusal when it is
false.
2026-11-29 00:49:24 -08:00
dotCooCoo 0947328096 ui-contract: a resizable top-share float holds its default size to the room below its top
The default size of a resizable float was held only to the screen, so a float placed by its top share with a tall default size outgrew the room below its top, and the keep rule moved its top up past the share. The default size now goes through FloatPlace::room_in, as the content-sized path does.
2026-11-28 23:44:18 -08:00
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
Harsh Verma 57c8c8d488 hayro: average minified 1-bit masks and Type 3 bitmap glyphs (storytold/pdfcraft#7936) (#2526)
* hayro: average minified 1-bit masks and Type 3 bitmap glyphs (storytold/pdfcraft#7936)

* hayro-interpret: pass one_bit to eight-bit RGB branches

* hayro: use bilinear sampling for minified 1-bit Type 3 glyphs (storytold/pdfcraft#7936)
2026-11-29 08:36:47 +01:00
dotCooCoo 9397987668 ui-patterns: the command palette keeps its top and field in place as the query changes its rows
The dialog face of CommandPalette was a modal centered on both axes and
sized to its rows, so its search field moved up and down with each query.
The box is now centered across the window with its top 15% of the window's
height down, and only its bottom edge moves as the rows come and go.

- ui-contract: FloatPlace::top_centered(share) places a float centered
  across its bounds with its top at that share of their height. Its room is
  held to the height that leaves the same share below it, measured in the
  overlay's own bounds, so a body as tall as it may grow (in an embedded
  shell, whose region lifts the modal's cap) does not push the top up.
- ui-patterns: the palette's dialog face uses it, at the share that matches
  its 70% height cap.
- Tests: the palette's top and field stay put between a 12-row and a 1-row
  query; in an embedded shell a 50-row list leaves the top in place; a
  bounded float keeps its top for a short and a tall scrolling body.
2026-11-28 23:01:52 -08:00
dotCooCoo 8c12c57731 ui-contract: a Line field's label sits on its control's line inside a row
A field laid out FieldLayout::Line centered its label on the height of the control's cell. Inside a Row the cell is as tall as the room the row has, so the label was drawn far below the number field, out of sight in a panel. The label is now centered on the control's height at the top of the cell.

The new test label::line::a_line_label_in_a_row_sits_on_its_fields_line puts a Line field in a Row in a 300 by 600 room and checks that the label and the value share a baseline. Without the fix the label's baseline is at 304 and the value's at 16.5.
2026-11-28 22:46:59 -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
dotCooCoo 4576af1b6b text: the Paragraph controls' host rows count in their measured height
ParagraphControls::show_with took `between` as FnOnce and ran it in the
first run of the controls' Stack body only. The Stack runs its body more
than once in a pass (measure, then real), so the host's rows were missing
from one of those runs. A container measured around the controls came out
one row short, and a flyout sized by that measure cut off Hyphenate below
its bottom edge.

`between` is now FnMut and runs in every run of the body. A caller that
passes a closure which only mutates its captures keeps compiling; one
that moves a captured value out needs to clone it.

The new test measures a Stack around the controls with a host row and
checks that the measure reaches the foot of Hyphenate. It fails without
the change (the host row does not show at all in that layout).
2026-11-28 22:45:18 -08: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