Commit Graph
6757 Commits
Author SHA1 Message Date
David Mann 552ce4a803 Canvas scroll bar arrows take no keyboard focus
The document chrome's step arrows were focusable stops. Tab stopped on
them, and when the canvas's focused part went away (a crop that shrank
the document) focus fell through to an arrow, which then took the Escape
that cancels the next crop frame. The canvas scrolls with its own keys
(arrows, Page Up/Down, Home and End), and in the reference application
the scroll bar arrows take no keyboard focus, so the arrows are
pointer-only, like the corner.
2026-11-20 19:58:58 +01:00
aiongg e94e82dc8c Merge pull request #2533 from aiongg/memo-audit-fix
Memo audit: kept views match a fresh run (#2336)
2026-11-20 13:15:13 -05:00
aiongg 74fe9ef614 values doctest: drop the whole-value binding before reading the revision (Bind runs a destructor) 2026-11-20 16:45:21 +00:00
aiongg 339570da6f Merge storytold next into memo-audit-fix
next's submenu switch (62189858af) requests a plain repaint, and its trial counts a memoized view beside the bar,
which replays while sibling submenus switch, in place of a settling Lazy region.
2026-11-20 15:33:50 +00:00
aiongg d0548c9c8a cargo fmt 2026-11-20 15:30:48 +00:00
aiongg 2e6dc72e71 contract-api: InstallSpec's clipboard field and setter in source order 2026-11-20 15:30:40 +00:00
David Mann 62189858af Merge pull request #2543 from davidmann4/haranishi-combined
Merge haranishi's 20 open UI fixes into next, with the fix-ups they need together
2026-11-20 16:28:27 +01:00
aiongg 9c03eb613c Memoized views: a move keeps placement only on one side of zero
Paint snaps to physical pixels and widget rects to the UI grid with f32::round, which takes a half step away from
zero: a coordinate on a half pixel moved by a whole pixel across zero snaps one pixel off the move (389.5 rounds to
390, -21.5 to -22). keeps_placement takes the moved area and needs it to keep its side of zero along each axis, so a
view moved across the window's edge runs. The gallery's glide to a selected card replayed a card one pixel off its
run under the audit.
2026-11-20 15:20:43 +00:00
aiongg ae02996d83 Replay audit: the pass a closed layer's exit ends in is unsettled
A host runs a closed layer only while its open tween still shows it (motion::layer_fading). In the pass the exit
reaches its end the layer's container still runs, drives the tween to rest and paints nothing; a memoized view around
it kept that run as settled and replayed it, re-registering the layer's memory owner, while a real run of the next
pass skips the layer. layer_presence notes the pass unsettled when the exit ends there, so the next pass runs for real
and is the run kept. The menu bar's open-and-close trial runs under the audit.
2026-11-20 15:09:54 +00:00
aiongg ec70bb0ff0 Merge storytold next into memo-audit-fix
next's egui pin (6525c87923, storytold/egui#53 on top of the branch's 1a44fd11cd) replaces the branch's; the lockfile
keeps the branch's typeid and craft-ui-contract dependencies. A replay keeps passing its shift: next's in-place
replay is the branch's RecordShift::none case.
2026-11-20 15:01:43 +00:00
aiongg 39da1180ee Merge storytold next into memo-audit-fix
next's WordCraft port and the framework work under it (243d68e12d) take the memoized-view APIs where they meet the
branch: story values bind through StoryData::bind, value_at and pair_at (next's copy-out stories included; one held
form story still binds a copy, as its held answer is a note beside the value); next's env values (GroupLevel,
ControlPlace, RibbonLook, ScreenModeSet), IconMark and PageBandRoom derive MemoProps, and the shell entry keys the page
band's room; request_own_repaint calls become request_repaint. The collection extent next reworked (motion-owned
style context, FillHeight, ideal width by item count) moves into items_extent. The header's hosted cells join the
parts' roving group from the pass's own membership (parts_group over Cx::join_roving), as the parts' stops do. A
content-sized shell slot measures its content with the app running in it every pass. The gallery card hands the
story's output from its view's real run (StoryRun).
2026-11-20 14:58:23 +00:00
FredApps 7afb9444d3 Merge pull request #2544 from storytold/deps/egui-font-cache-revision
Update egui for reusable font layouts
2026-11-20 21:46:26 +07:00
aiongg a214d2e8e5 MemoProps: every_pass, covered_by and address derive attributes; the framework's own keys stay hand-written in ui-contract
The derive takes #[memo_props(every_pass = "why")] on a type (it keys in every pass and
feeds no field), #[memo_props(covered_by = "<field>", reason = "why")] on a field another
field of the same variant stands for (the named field must exist and feed the key) and
#[memo_props(address = "why")] on a &'static field. Group, menu level, timeline and canvas
contexts and GuideDrag key in every pass; CaptionIcons, Catalog and ModalRules name the
field that covers the rest (ModalRules' allowlist entry goes); CardStory keys its
registration by address. design-lint allows hand impls of framework keys in ui-contract
(values.rs, icon.rs, memo_view.rs beside memo.rs) and lists the gallery's &mut state views
and the two presets walks with their reasons. Doctests for each attribute.
2026-11-20 14:21:25 +00:00
aiongg 6575942aed MemoProps by the derive where it expresses the key; the tool rail trials' rooms are trial rooms
ShapePreset derives (a fieldless enum: its variant), UnderVeil and the gallery card's Look
derive with their foreign fields keyed by Hash. The rail trials' fixture room is exempt from
literal-size as the iconic column trials' are.
2026-11-20 14:08:58 +00:00
aiongg 31bda8a4fb craft-ui: a root shown at a rect that is not a number registers its egui widget at no place
The root's widget takes its whole rect since f43fb4e2c2, so a NaN rect reached egui's
create_widget, which asserts on it (value_drag's degenerate-rect trial). Before, the
intersection with the clip hid it.
2026-11-20 13:57:58 +00:00
aiongg b4dc6b1e2f craft-ui: a memoized view's content keeps the axes its body sizes from its content
start_room cleared the enclosing body's content axes, so a fill-width child in a view
shown in a content-sized column took the room instead of its measured size: the tool
rail's slot grid filled the Liquify and Vanishing Point dialogs' rows and left their
canvases no width. The axes stay, like cell_fills and least, and the scope key holds them.
Trial: a view in a content-sized column lays its fill-width row out as outside a view.
2026-11-20 13:57:58 +00:00
David MannandClaude Opus 5.5 0599a8acbc Format the merged menu row test imports
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:56:37 +01:00
David MannandClaude Opus 5.5 16e2584365 Merge storytold next into haranishi-combined
Conflicts resolved by keeping both sides. The start screen keeps next's
Greeting layout and its move of the recent body to recent_list.rs; the
desktop Home grid aspect and card padding now reach recent_body through a
desktop_home flag. The scroll bars keep both the document chrome (arrows,
corner) and next's drag tip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:55:23 +01:00
aiongg fade8e0ba5 craft-ui: a focus request waits for the stop it names when that stop registers later in the pass
A component asks for its own focus from update, and its stops register after update
(910a14280f). The request found no stop and focused the component's id, which is no egui
widget when the stop's root is another widget (an arena member's root), so egui dropped the
focus after its grace pass: a shortcut recorder lost focus before any key reached it. The
stop now takes the focus when it registers in the same pass.
2026-11-20 13:47:38 +00:00
David MannandClaude Opus 5.5 6327670e92 Fix the two design-lint findings from the Home screen spacing
The tile's regular card padding is a #[prop] instead of a hand-written
setter. The desktop Home page's outer margins are larger than any spacing
token, so they keep their measured values behind a listed exception.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:36:47 +01:00
Martin Ball 243d68e12d Merge pull request #2473 from storytold/port/wordcraft-ui
WordCraft UI port: framework changes
2026-11-20 13:31:28 +00:00
Martin BallandClaude Opus 5.5 c7d194eb66 ribbon face: stacked lines measure through MeasureCx::least, as next now does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:27:09 +00:00
FredApps d4eb5c01a3 Keep the egui fork revision constant in sync 2026-11-20 14:22:27 +01:00
Martin BallandClaude Opus 5.5 5970a5a5e3 Merge storytold next (9ca7a5480) into the port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:21:54 +00:00
David Mann 9ca7a54803 Merge pull request #2520 from aiongg/select-measure-once
Measure a select's faces once and keep them out of the layout memory
2026-11-20 14:20:09 +01:00
FredApps 96e54fd6dd Keep recorded replay in place after egui update 2026-11-20 13:45:13 +01:00
FredApps 13fa150f7e Merge pull request #2365 from storytold/perf/2218-video
video: consolidate integration test binaries
2026-11-20 19:43:03 +07:00
aiongg be31589c88 craft-timeline: drop an unused import in the timecode tests 2026-11-20 12:37:47 +00:00
FredApps 5cbdea1d15 build: update egui for reusable font layouts 2026-11-20 13:36:36 +01:00
aiongg e08485440e craft-ui-panels: the group header's doc names the tab row view without linking a private item 2026-11-20 12:29:04 +00:00
David Mann 98d0b8ce4b New Document: keep Orientation beside Height reachable
Orientation sat in a content-sized grid column that was measured empty,
so its segments were clipped to nothing and a click did not turn the
page. Height carried its own unit select as well, although one unit
serves both sides. Height now shows its number alone in the shared unit
and shares the row with Orientation in two equal columns, as Color Mode
and Depth do. The orientation test also checks that both glyphs paint
inside a visible clip, which would have caught this.
2026-11-20 13:18:00 +01:00
Martin BallandClaude Opus 5.5 27c1c0ebb1 Merge storytold next (d5b465e54) into the port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:17:11 +00:00
aiongg d9475fba2b craft-ui: a root keeps the key focus it holds for a member at step 8
The stop of an arena member (a radio in its group, a theme chip) has its root's
egui widget as its widget. Step 8 registers that widget with the root's own and
its parts' senses, and the members' senses join once the body has run
(widen_root). egui drops the focus of a widget registered without a focus sense,
so Tab, an AccessKit Focus or a press that focused a member lost it in the same
pass. While the focus service says the root holds focus for another component's
stop (focus::held_for_member), the step-8 sense includes focus.
2026-11-20 12:16:39 +00:00
aiongg 4af1ede89b craft-ui: arrays and texture ids carry through a shifted replay 2026-11-20 12:04:34 +00:00
aiongg fbb1f0f911 story-render: walk the gallery's kept story states through Cells::states_mut 2026-11-20 11:56:02 +00:00
David Mann 9e2ad8542f New Document: import IconId for the orientation icons
#2427 removed the icon Save button and with it the IconId import; #2423
adds orientation icons that need it. Together the crate did not compile.
2026-11-20 12:55:58 +01:00
David Mann c1eccbc5f6 Merge #2440: Allow NumberField to set a separate scrub step 2026-11-20 12:51:49 +01:00
David Mann 77d35517dd Merge #2439: List Percent before Pixels in Image Size 2026-11-20 12:51:48 +01:00
David Mann 934edb1adf Merge #2432: Let hosts opt in to deleting an individual process channel 2026-11-20 12:51:48 +01:00
David Mann b97df74abb Merge #2427: Restore the New Document preset layout 2026-11-20 12:51:47 +01:00
David Mann 2ca8c47970 Merge #2424: Restore the Home screen rail and empty-state card 2026-11-20 12:51:46 +01:00
David Mann 7b1b840cba Merge #2423: Restore page orientation icons in New Document 2026-11-20 12:51:45 +01:00
David Mann 66c73d8be6 Merge #2418: Add document chrome to canvas scrollbars 2026-11-20 12:51:45 +01:00
David Mann 83ce2777a9 Merge #2410: Keep the active submenu path highlighted 2026-11-20 12:51:44 +01:00
David Mann 39cd7761e3 Merge #2401: Save for Web: restore Constrain proportions and retain exact pixel sizes 2026-11-20 12:51:43 +01:00
David Mann 2020862ecf Merge #2399: Let adjacent parameter fields share a row 2026-11-20 12:51:42 +01:00
David Mann 061e6de36b Merge #2397: Show declared units on parameter dialog number fields 2026-11-20 12:51:41 +01:00
David Mann b816275d43 Merge #2394: Keep Color Range sampling and preview controls in the dialog 2026-11-20 12:51:40 +01:00
David Mann a873b1ed2a Merge #2393: Show the active Gradient Map preset and how to add stops 2026-11-20 12:51:39 +01:00
David Mann f2446c8f66 Merge #2388: Fit the default Grays swatches in a narrow dock 2026-11-20 12:51:39 +01:00