Commit Graph
5656 Commits
Author SHA1 Message Date
David Mann 15fee07c8d Merge branch 'fix/next-red-dock-settle' into HEAD 2026-11-19 00:56:30 +01:00
David Mann b5b1300783 Lazy::show_or: a view that leaves its room takes none
next has been red since #2273 on two counts, both in the dock's settling
host view (3bcc5bec4):

- design-lint: contract/lazy.rs named `egui::LayerId` for the run's
  layer. The run now holds the runtime's `Layer`, the type `Place` and
  `replay::close` already use.
- hovering_a_tab_runs_only_its_group: the dock ran its host view in a
  `scope_builder`, which takes room and item spacing in the Lazy's
  child even when the host leaves the group to the dock. A replayed
  group then sat 4 points lower in flow than a group that ran, so the
  child's extent changed whenever a hovered group ran, layout memory
  asked for a discard pass, and that pass ran every group (5 runs
  where 1 is expected).

`show_or` now runs `add` in a child `Ui` that takes room only when it
returns `Some`, so `otherwise` takes the same place whether it runs or
replays.
2026-11-19 00:55:45 +01:00
David Mann 04ba41419b Merge pull request #2242 from ljkx/fix/15540-dialog-first-field-selected
Dialogs: a dialog that opens on a text field selects its text (photocraft#15540)
2026-11-18 23:27:59 +01:00
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 18ffc07519 Merge pull request #2273 from aiongg/frame-cost
Frame cost: shown-chord table, settling host views, one gate answer per frame
2026-11-18 16:19:20 -05: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
David Mann 6f6426960f Merge remote-tracking branch 'origin/next' into HEAD 2026-11-18 18:26:27 +01:00
aiongg 8a68633768 Merge pull request #2073 from aiongg/themecraft-wave1
ThemeCraft wave 1: theme edits, library save, region theming, icon packs, craft-theme-editor crate
2026-11-18 12:22:56 -05:00
aiongg e5f682a36d Merge pull request #2236 from aiongg/ci-speed
ci: cache after the build, rust-lld on Windows, slowest tests first
2026-11-18 12:21:07 -05:00
ljkx 7be4487c58 fix(ui-contract): a dialog that opens on a text field selects its text
A focus scope shown for the first time moves focus to its initial stop
(a dialog's `Initial::FirstField`), but a plain text field then put the
caret after its text, as its codec asks for any focus gain, so typing
added to the value instead of replacing it (New Layer's name read
"Layer 17" after typing "7").

The initial focus now records its own origin, `FocusOrigin::Open`. A text
part that gains focus that way selects its whole text whatever its codec's
caret. Tab and clicks keep their caret rules, and `focus_arrived_by_key`
still counts the open as an arrival by key, as before.

photocraft#15540, part of storytold/photocraft#15476.
2026-11-18 17:15:31 +01:00
aiongg 9442a099f2 Merge storytold next into themecraft-wave1 2026-11-18 16:05:01 +00:00
aiongg cf520e89a6 ci: the resource-group test ignores the priority overrides 2026-11-18 16:00:50 +00:00
aiongg 7a7f5302fa Merge pull request #2091 from aiongg/picker-full
Colour picker: Photoshop's fixed Full arrangement, dialog buttons in a body slot
2026-11-18 10:07:45 -05:00
aiongg 8d3552ab4b ci: use the gate at main now that warm-command has merged 2026-11-18 14:51:43 +00:00
aiongg 53936661ef ci: warm the build cache after the build, link Windows with rust-lld, start the slowest tests first 2026-11-18 14:49:57 +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 ee721253f3 Merge pull request #2072 from aiongg/label-scope-nested
Label scope: a field label reaches a control inside a layout row
2026-11-18 08:49:29 -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