Commit Graph
6958 Commits
Author SHA1 Message Date
aiongg 108a8a3550 contract-api: regenerated 2026-11-20 22:06:55 +00:00
aiongg d84b15cca1 Text layout memo: one measurement path, eviction by use, a total budget
Removes the paired measure (Component::PAIRED_MEASURE, measure_pair and its
six adopters, MeasureCx::least_width) and the prepared-leaf path
(PreparedLeaf, PreparedStep, run_with, show_leaf_prepared,
measure_under_prepared, child_with_prepared): every leaf is measured by
measure alone, and the recursive run frames carry only what they read after
their children again.

Keeps the text layout memo and the lazy layout runs, with three fixes: a Line
run keys its width as infinity, entries unused for 60 passes go instead of
first in first out, and a 32 MiB budget bounds what the memo retains.
TextLayout's full and runs are private behind full() and runs().
2026-11-20 22:06:54 +00:00
David Mann 50e00dd493 Merge pull request #2631 from davidmann4/fix/scrollbar-arrows-pointer-only
Canvas scroll bars: thumb drag follows every move; arrows take no keyboard focus
2026-11-20 22:16:12 +01:00
FredApps 2ad95c4994 Merge pull request #2361 from storytold/perf/2333-text-layout
Reuse text layouts and measure supported leaves once per sweep
2026-11-21 03:16:33 +07:00
FredApps 9c180fca2f Merge pull request #2363 from storytold/perf/2332-explicit-ui-suite
Split the UI test kit and select suite registrations explicitly
2026-11-21 03:16:06 +07:00
David Mann 399922917f Merge pull request #2634 from davidmann4/fix/picker-full-hex-enter
Color Picker: Enter in the Full layout's hex field confirms
2026-11-20 21:11:43 +01:00
David Mann 2422396c0b Merge pull request #2612 from davidmann4/fix/snap-span-reach
Snap targets can reach past their spans
2026-11-20 21:04:32 +01:00
David Mann 6d3d29331c Canvas scroll bars: a thumb drag follows every move
The canvas settles the view it is given to whole device pixels, so a
thumb drag's first proposal came back with its centre a fraction of a
pixel off. The value step read that as the app changing the view under
the gesture and cancelled it (HostChanged); the cancelled gesture refused
every later proposal until the release, so the view moved once and then
stayed (photocraft#16006). The bars now take a host view with the same
zoom, turn, mirroring and aspect and a centre within a point as their own
value (same_value), as the number fields do with rounded values.
2026-11-20 20:51:50 +01:00
David Mann 31997fa3b6 Merge pull request #2564 from davidmann4/next-sync-1120b
Merge storytold main into next (20 Nov, second sync)
2026-11-20 20:25:24 +01:00
David Mann 80807123fb Color Picker: Enter in the Full layout's hex field confirms
3155a1d38 made the hex field own Enter for the tabbed Colors dialog. The
Full layout focuses the same field on its first show, so its Enter only
committed the digits and the dialog stayed open. In the reference image
editor's Color Picker, digits typed there and Enter set the colour and
close the dialog. The field owns Enter in the Compact layout only.
2026-11-20 20:14:04 +01:00
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
FredApps d292c8a742 Format combined measurement exports 2026-11-20 19:56:31 +01:00
David Mann d7a61a8889 Snap targets can reach past their spans
A spanned target catches only a point or box overlapping its span on the
other axis since canvas-w4, which keeps a layer's edge on its page from
catching a box on another page. Photoshop-style layer edges snap a box
beside them too (side-by-side boxes align their tops), so PhotoCraft's
Move tool stopped snapping to other layers' edges.

SnapTargets::reach_past_spans() lets every target catch along its whole
line, the span only shaping the drawn smart guide. The default is
unchanged, and filtered() keeps the setting.
2026-11-20 19:45:06 +01:00
FredApps 9fd22632b4 Merge commit 'bce3d25e' into perf/font-revision-consumer 2026-11-20 19:32:56 +01:00
FredApps bce3d25ea1 Follow upstream settled test replacement 2026-11-20 19:32:44 +01:00
FredApps 95761e1418 Merge commit '752d2279' into perf/font-revision-consumer 2026-11-20 19:27:10 +01:00
FredApps 752d2279ce Allow the owned gallery story memo key 2026-11-20 19:26:44 +01:00
FredApps 0abd4eb4fe Merge commit '36dea842' into perf/font-revision-consumer
# Conflicts:
#	crates/ui-contract/src/testing/mod.rs
2026-11-20 19:26:27 +01:00
FredApps 36dea842e8 Merge remote-tracking branch 'origin/next' into perf/2332-print-coverage
# Conflicts:
#	crates/design-lint/src/workspace.rs
#	crates/menu/tests/it/main.rs
#	crates/ui-contract/src/testing/mod.rs
#	crates/ui-gallery/src/chrome/card.rs
#	crates/ui-gallery/src/viewer/catalog.rs
#	crates/ui-gallery/tests/it/main.rs
#	crates/ui-widgets/tests/it/bars/mod.rs
#	crates/ui-widgets/tests/it/body/mod.rs
#	crates/ui-widgets/tests/it/text/chips.rs
2026-11-20 19:23:18 +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
FredApps f723e6ad88 Merge commit '2d212dadae338d5e2333c591d4b2e3cffe0a1193' into perf/font-revision-consumer 2026-11-20 18:06:37 +01:00
FredApps 2d212dadae Isolate coverage for cancelled print helpers 2026-11-20 18:05:00 +01: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
David MannandClaude Opus 5.5 72b6a1664d craft-audio-dsp: doc links that next's workspace docs check refuses
next builds every crate's docs with -D warnings; main has no such check,
so main's new crate meets it here first. [`effects`] is both a module and
a function (mod@ picks the module), and loudness linked to the private
oversample module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 17:04:33 +01:00
FredApps d87dd5b9b0 Integrate trial registry with text layout work 2026-11-20 16:43:02 +01:00
David MannandClaude Opus 5.5 1929e79ebb Merge storytold main into next (20 Nov, second sync)
Merges main at 8f92ed1334 (#2550 and the rest of main since the 20 Nov sync).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:38:55 +01:00
FredApps fc6bce9258 Merge current next after the egui pin 2026-11-20 16:36:31 +01:00
FredApps 1ed5bd9f11 Use the theme ink in the text cache trial 2026-11-20 16:36:20 +01:00
FredApps 428601bc95 Merge branch 'next' of https://github.com/storytold/craft-libs into publish/registry-2332
# Conflicts:
#	crates/color-ui/src/ui/swatches.rs
#	crates/draw/tests/it/main.rs
#	crates/imaging/tests/it/main.rs
#	crates/menu/tests/it/shortcuts/mod.rs
#	crates/text/tests/it/main.rs
#	crates/ui-patterns/tests/it/form_dialogs/mod.rs
#	crates/ui-widgets/tests/it/text/mod.rs
2026-11-20 16:35:19 +01: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
David Mann 8f92ed1334 Merge pull request #2550 from davidmann4/agents/default-folder
craft-control agents: default agent folder in Documents and the agent_folders tool
2026-11-20 15:54:58 +01:00
FredApps 2178dd2971 Repair registry access and story renderer 2026-11-20 15:47:42 +01: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
FredApps 5b556d052e Avoid unwrap in text cache trial 2026-11-20 15:40:51 +01:00
FredApps 038cc09e88 Check warmed paired faces avoid text layouts 2026-11-20 15:33:17 +01:00
FredApps c16583e194 Compare paired and separate button sizing 2026-11-20 15:29:22 +01:00
49b542759c mesh: support opt-in GLB sampler filtering (#2523)
* mesh: support opt-in GLB sampler filtering

* mesh: describe GLB sampler filtering in the README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:28:05 +07:00
FredApps dda31ff79b Preserve button face sizing in paired measurement 2026-11-20 15:22:14 +01: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
FredApps b87e5f1ade Expose chooser trials to the registry 2026-11-20 15:15:52 +01:00
FredApps c4c4129493 Expose text memo trials to the registry 2026-11-20 15:12:29 +01:00
FredApps a2ef8a4c0a Integrate landed egui font-cache revision 2026-11-20 15:09:38 +01:00
FredApps 5a26de289a Merge current next with text layout caching 2026-11-20 15:09:09 +01:00