Commit Graph
5262 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 4d78bb2de2 Add Anchor: Alt selects or copies the whole subpath
In the reference application Alt does not turn Add Anchor Point into
Delete Anchor Point: an Alt click on a segment selects every anchor of
its subpath and adds nothing, an Alt drag moves a copy of the subpath
(the copy ends up selected), an Alt click on an anchor deletes nothing,
and the cursor is the arrow with a plus.

The overlay now does the same under Add Anchor, reusing Direct
Selection's Alt segment press (`PathEdit::DuplicateSubpath`, or the
subpath itself on a path that takes no copies). Delete Anchor with Alt
still adds an anchor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:03:09 +01:00
aiongg e79a3ed16e TransformBox: trial that a frame run twice reports each drag move once
A frame's second pass runs the box's update again with the press still
held at the same point. The proposal it makes equals the one the first
pass reported, and the gesture reports an equal proposal only once, so a
host that applies each Update applies it once per move. The trial runs
a drag with every frame run twice and counts the updates.
2026-11-18 20:59:41 +00:00
aiongg 0392fc439d Commands: the gate answers each command once per frame
The board asked the app's gate again for every resolution: each reader
of a command, the measuring and the real run of each component, and the
re-resolution of every shown reader at the start of each pass. The gate
is a snapshot of what the app knew before the frame, so the board keeps
its answers for the frame and asks once per command. CommandRef::key_text
gives the key without allocating for a command without parameters; the
keymap's lookups and the board's answers use it.
2026-11-18 20:59:41 +00:00
aiongg 3bcc5bec46 Dock: a host view settles under its panel's content version
DockPanels::group_view ran in every pass, while the dock's own groups
settle their bodies under DockPanels::content. A host view now runs in a
settling Lazy under the shown panel's content version, the group's
panels and its shown tab, and repaints its last run while they hold.

Lazy::show_or carries the host's answer: the view runs first, and where
the host leaves the group to the dock, the dock's group shows in the
same child and that run is not kept, so the next pass asks the host
again. The run-count trial checks that a settled frame runs neither the
view nor the versioned body.
2026-11-18 20:59:41 +00:00
aiongg a23d8c68c6 Menu bar: one MenuHelp constructor, over a function that lists the entries
MenuHelp had two constructors, one over a list the caller built every
frame and one over a function the bar calls only while the Help menu is
open. Only the second keeps closed menus from paying for the list, so it
is the one constructor: MenuHelp::new takes the function.
2026-11-18 20:59:16 +00:00
aiongg 57ecf973e1 Keymap: shown chords from a table built when the bindings change
Keymap::shown_chord ran a lookup for each single-press binding of the
command, and Board::resolve calls it for every command it resolves, so
each frame repeated those lookups for every command row, tool and button.
The keymap works out each command's shown chord when it is built and
whenever its bindings change, and shown_chord reads the table. The lookup
and the table share one ranking (Keymap::winners), which replaces the
separate press_runs copy of it.
2026-11-18 20:43:24 +00:00
ljkx 68df8bf16c fix(rtf): list levels keep their number format, start and level text (#2085) (#2259)
The `doc` reader kept only "numbered or not" for each level of an RTF
list table and gave every list paragraph start 1 and no label, so every
numbered list read as 1., 2., 3.

Each `\listlevel` now keeps its number format (`\levelnfc`/`\levelnfcn`,
the MSONFC codes, as the Word 97 reader maps them), the number of its
first item (`\levelstartat`, held to Word's 0..=32767) and its
`\leveltext`, read in a destination of its own and bounded to 256
characters. A list paragraph's `ListInfo` gets the level's start and a
label from `Label::of_level` (placeholders 0 to 8 as %1 to %9; a bullet
level's character as its bullet). A level without level text keeps no
label, as before.
2026-11-18 15:30:54 -05:00
ljkx cec20449a2 fix(audio): an empty WAV data chunk before a LIST chunk is no audio (#2123) (#2246)
A `data` chunk of size 0 counted as empty only when the RIFF size matched
the file. A writer that appends a `LIST` chunk after writing the RIFF size
leaves it stale, so the reader took the file for an unfinished recording
and decoded the `LIST` chunk's bytes as samples (8 frames of noise instead
of none).

A size-0 `data` chunk is now also empty when whole chunks follow it and the
first one has an id that follows audio (LIST, bext, cue, JUNK, ...). A
recording that was never finalised (PCM after the header) and bytes that
only start like a chunk still decode as audio.
2026-11-18 15:30:49 -05:00
aiongg 38429defb8 Merge pull request #2082 from davidmann4/perf-frame-cost
Menus: Help entries only while Help shows, mnemonics once per level, chords without allocating (photocraft#15493)
2026-11-18 15:12:05 -05:00
David Mann 650979426d Merge pull request #2067 from davidmann4/perf-menu-hover-lag
Menus: test that the highlight moves to the next row in the frame the pointer reaches it (photocraft#15477)
2026-11-18 20:45:44 +01:00
David Mann e5a16290fd Merge pull request #2121 from davidmann4/input-reply-at-pass-end
Control channel: answer injected input with the pass that ran it, not one pass later (photocraft#15493)
2026-11-18 20:04:55 +01:00
David MannandClaude Opus 5.5 37f0d16764 menu bar tests: the two new tests run as Linux, like the rest of the file (macOS has no in-window bar)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:02:00 +01:00
David Mann e380b20809 Merge pull request #2136 from davidmann4/fix/window-edge-drag-leaves-window
A press whose pointer left the window still drags: window edges resize when pulled out (#2132)
2026-11-18 19:54:12 +01:00
David Mann a8cec754bf Merge pull request #2099 from davidmann4/fix/photocraft-12517-column-only-panels
dock: panels that dock only in dock columns (photocraft#12517)
2026-11-18 19:53:15 +01:00
David Mann 90ca881c87 Merge pull request #2066 from davidmann4/fix-floating-panel-drag
Floating panel windows follow the pointer when dragged (photocraft#15478)
2026-11-18 19:52:53 +01:00
David Mann d7c73383be Merge pull request #2065 from davidmann4/fix/task-bar-grip
Task bar: grip on the members' line, one floating surface (photocraft#15479)
2026-11-18 19:52:39 +01:00
David MannandClaude Opus 5.5 367d2a3e65 automation tests: name the polling fixture's pass log (clippy type_complexity)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 18:38:41 +01:00
David Mann 3e624f9930 Merge remote-tracking branch 'origin/next' into HEAD 2026-11-18 18:35:50 +01:00
David MannandClaude Opus 5.5 b2612c91dc Menus: test that the highlight moves to the next row in the frame the pointer reaches it
A menu row's highlight comes from the LEAD flag rule, which resolves without easing, and
the popup makes the row under the pointer active before its rows run. The new test pins
both: the frame that moves the pointer onto the next row paints that row's full highlight
and none on the row it left, with no time passing. It fails if the active row follows the
pointer a frame late, or if the highlight moves onto the eased hover mix (80 ms).

Fixture::frame_shapes_with(events) returns what the frame that took the input painted.

Part of photocraft#15477.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 18:31:34 +01:00
David Mann 161ea90ec7 Merge remote-tracking branch 'origin/next' into HEAD 2026-11-18 18:30:36 +01:00
David Mann c4c4355e48 Merge remote-tracking branch 'origin/next' into HEAD
# Conflicts:
#	crates/ui-contract/src/runtime/windows.rs
2026-11-18 18:27:21 +01:00
David Mann 507060a883 Merge remote-tracking branch 'origin/next' into HEAD 2026-11-18 18:27:11 +01:00
David Mann 987933fb1f Merge remote-tracking branch 'origin/next' into HEAD
# Conflicts:
#	crates/menu/src/bar.rs
#	crates/ui-widgets/tests/it/menu/bar.rs
2026-11-18 18:26:56 +01:00
David Mann 7429d8cdb1 Merge remote-tracking branch 'origin/next' into HEAD 2026-11-18 18:26:31 +01:00
aiongg 9442a099f2 Merge storytold next into themecraft-wave1 2026-11-18 16:05:01 +00:00
aiongg 016ca5425d Merge storytold next into themecraft-wave1 2026-11-18 14:01:25 +00:00
aiongg f1c8460306 Merge storytold next into picker-full 2026-11-18 14:01:22 +00:00
aiongg 50fd4baa93 Merge pull request #2189 from aiongg/lint-tuple-index
design-lint: a tuple field in an assert is not a literal size
2026-11-18 08:52:52 -05:00
aiongg f9a53dd0ee Merge pull request #2129 from aiongg/settle-chrome
Dock and title chrome settle like panel bodies (photocraft#15493)
2026-11-18 08:52:26 -05:00
aiongg d68476cf46 Merge pull request #2081 from aiongg/update-available
update: Updater::available exposes the release a check or offer found
2026-11-18 08:51:43 -05:00
aiongg 999f4583c4 Merge pull request #2182 from aiongg/contract-stack
contract: a component's run keeps only what it reads after its children on the stack
2026-11-18 08:51:16 -05:00
aiongg 780c13fa81 Merge pull request #2127 from aiongg/toolbar-overlay-scroll
Toolbar: hover-only overlay scroll bar, one named drop mark per dock drag (photocraft#15524, photocraft#15526)
2026-11-18 08:50:18 -05:00
aiongg 076fa67056 Merge pull request #2080 from aiongg/histogram-native-expand
Native dock windows: the app's move is known from the window's first pass
2026-11-18 08:49:51 -05:00
aiongg 517257dba5 settle chrome: the settled menu bar trial runs as a PC app
A Mac app's menu bar is native, so the in-window bar's F10 and Alt keys are PC behaviour; the trial sets Linux as the rig's other trials do.
2026-11-18 10:58:51 +00:00
aiongg 95ed268bf5 design-lint: a tuple field in an assert is not a literal size
`pair.1.0` lexes as `pair`, `.`, `1.0`, so test/literal-size read the field access as the float 1.0.
2026-11-18 09:40:28 +00:00
aiongg 80c57d0bc8 picker-full: split the Full picker arrangement trial, relation asserts in the dialog trial, regenerate the components index 2026-11-18 09:37:50 +00:00
aiongg 0139ee11ae settle chrome: the settled bar trial runs its four frames again, and the docking runs name their settled dock
`(0..4).map(|_| frame()).next_back()` runs the frame once, not four times: a Map over a range steps from the back
without calling the closure for the other items. The trial runs three frames and checks the fourth.
2026-11-18 09:35:37 +00:00
aiongg 97ca29aeb9 icons: the set a theme names resolves in the style layer that holds it 2026-11-18 08:34:26 +00:00
aiongg c4f044aaf9 color picker: drop the unused Props import in the warning stories 2026-11-18 08:33:30 +00:00
aiongg 6d3dceca44 settle chrome: the column bar scopes without an id salt, and the tests drop the deprecated Ui::id and unused mut 2026-11-18 08:33:28 +00:00
aiongg b15eeaa81f contract: the measure run's layer goes through runtime::egui::areas 2026-11-18 08:30:30 +00:00
aiongg c60f9c9066 contract: clippy-clean after the stack split
Drops the three cognitive_complexity expects the split made unfulfilled, the borrows of cx.core that is already a reference, and moves BodyOwner's doc line back onto it.
2026-11-18 07:38:22 +00:00
aiongg b77d8760c3 contract: a component's run keeps only what it reads after its children on the stack
A component's children run inside its pipeline (the measuring run of step 5, the overlay, paint, the body and
paint_over), so every frame on that path stays on the stack for each nesting level. The level kept all of steps 1 to
17's working state there: CxCore moved by value through the dyn call into Cx, the component taken out of Typed into
with_cx, and run_steps, run_in_host and the body step each one function with every step's locals.

- Cx holds `&mut CxCore`; the run builds the core once, in run_passes, out of the frame step 5's measuring runs
  recurse from. finish keeps its signature.
- The show's caller makes the component's slot; Typed borrows it and finish takes it out after the children ran.
- run_steps, run_in_host, the body step and the measuring run are drivers over per-step functions; what crosses a
  child's run is a small state struct (Begun, HostStep, BodyPlan, MeasurePlan).
- Layouts, label columns and region contexts build their Ui, UiBuilder and BodyCx in helpers, and each body layout
  and label-column arm runs in its own function.
- Helpers that opt-level 2 merges back into a recursive frame are inline(never).

A body sixteen containers deep shows on a 512 KiB stack (body::nesting).
2026-11-18 07:27:48 +00:00
aiongg caf0f01d00 Merge remote-tracking branch 'upstream/next' into settle-chrome 2026-11-18 05:29:08 +00:00
aiongg 36749e88a3 Merge remote-tracking branch 'upstream/next' into toolbar-overlay-scroll 2026-11-18 05:29:05 +00:00
aiongg 22d4cd8e8e Merge remote-tracking branch 'upstream/next' into picker-full 2026-11-18 05:29:03 +00:00
aiongg e157a6c330 Merge remote-tracking branch 'upstream/next' into themecraft-wave1 2026-11-18 05:29:00 +00:00
aiongg 04e1f2eda9 Merge remote-tracking branch 'upstream/next' into histogram-native-expand 2026-11-18 05:28:58 +00:00
aiongg 17b0f020f7 Merge remote-tracking branch 'upstream/next' into update-available 2026-11-18 05:28:55 +00:00
aiongg 8bb7cc1223 Merge remote-tracking branch 'upstream/next' into label-scope-nested 2026-11-18 05:28:53 +00:00