Commit Graph
7100 Commits
Author SHA1 Message Date
aiongg f1578248db craft-ui: a levelled unit runs half a pixel past its measured width
At its level a unit ran bounded at exactly the width its Count probe measured, so content that took that width could
wrap on a rounding. It runs at that width plus measure_tolerance, as other bounded re-runs of measured content do.
2026-11-21 07:07:14 +00:00
aiongg 61c6e3cbcd craft-ui: a levelled unit's children take no slots on its row's line
The content of a levelled unit stood on the row's line for every purpose, so each direct child of a unit took a slot
as tall as the line and reported its line to the row: a unit of two controls was two lines high. The unit's content
takes the line only to fill it (`fill_size`, `line_height`); its children are placed in the unit's own flow and
report nothing to the row (`RowLine::places`).
2026-11-21 07:07:12 +00:00
aiongg 8da82d585b craft-ui: a fill-height container takes only its row's settled line
In the measuring run of a row that shares a line with an inline header or a non-full-height end region, the row's line
carried the shared height, and a container that fills its height on it was given that height, so taller content was
cut to the header's line. A container takes the row's line only once this pass's measuring run of the row settled it
(`RowLine::settled`); while the row measures, it measures its content. The line rule joins the capped decision: one
check, `given_room`, gives a capped container its room on a settled line or when its content outgrew the room.
2026-11-21 07:06:23 +00:00
aiongg 3f84f9eb43 menu: the ribbon measures right in its first frame
A group sized the spacer under its content from the content height the last real run kept (ContentHeight), so in the first frame every group stood one body too tall, and a host laying out under the ribbon saw a taller ribbon first (WordCraft scrolled its caret into view 64 pt off). The titles' line (BodyHeight) and their centring (TitleCentre) were the same last-pass state.

Each group is a labelled stack that fills the row's line: its title sits at its foot under a filling spacer, its separator fills its height, and its title row centres the title across the group's width in this pass. The row's least height (three control rows and a title line) is the row's least line height. ContentHeight, BodyHeight and TitleCentre are gone.
2026-11-21 06:11:12 +00:00
aiongg f0808f3d2a craft-ui: a row's least line height (ContainerProps::least_height, Row::least_height)
An unwrapped row's line is at least the least height, as if a child of more than one line that high stood in it, so the children that fill the line take at least it.
2026-11-21 06:11:12 +00:00
aiongg ae4c12a4b1 craft-ui: a levelled unit runs in the width its row gave its level
In a row that scrolls along x, a unit's content ran in the scroll region's unbounded room, so a centred row in it centred in the view, and fill-width children in its content columns never widened to the column. At its level the unit runs in the width the shrink step gave that level, so its content lays out as in any room of that width.
2026-11-21 06:11:11 +00:00
aiongg 2b68a30906 craft-ui: a container that fills its height on a content-height row's line runs its body in the line
Such a container took the line's height as its rect, but its body still ran at its content height, so the children in it that fill (a spacer, a separator, a footer) never reached the line. Once the row's measuring run settled the line, the container is given its height and its body runs in it, as a fill-width row on the line of a row given its height already is. In the row's own measuring run there is no line yet and the container measures its content.
2026-11-21 06:11:11 +00:00
aiongg 7a430a8e4f craft-ui: a levelled unit stands on its row's line
A levelled unit's content ran in a room of its own with the row's line cleared, so a child of it that fills its height took its own measured height instead of the line the row settled on. The unit keeps the row's line; only the probes that measure each level run off it.
2026-11-21 06:11:11 +00:00
aiongg 463c634dd6 craft-ui: a reveal goes to the scroll owner around the component, never to a region beside it
A component with no scroll owner in its scope sent its reveal to the smallest scroll region of the last pass whose
rect met its own; egui's intersects counts a shared edge, so WordCraft's page canvas, taking the focus in its first
pass, scrolled the status bar under it to its end. A reveal and an untaken page or end move now go only to the scroll
owner the scope names, and with none nothing scrolls. A collection that scrolls its rows names itself their scroll
owner, so a reveal in a row still reaches it; the geometric lookup is removed.
2026-11-21 05:21:37 +00:00
aiongg c0ba9cceb2 pages: Go To puts the view's top where the page before ends
A go_to in a continuous view subtracted the margin above the first row (16) from every page's top, while rows after
the first have the page gap (12) above them, so 4 pt of the page before showed at the view's top and WordCraft's
status bar named that page. Since #7149 item 7 the offset and the canvas use one rect inside the rulers, which
brought the 4 pt into view. The view's top now goes where what shows of the row above ends (the document's start for
the first row), which holds for gaps on and off, Hide White Space and spreads.
2026-11-21 05:16:56 +00:00
aiongg 614f4d5f16 Merge pull request #2747 from aiongg/rework-lists
Lists and the pen tools: hover moves only the lead in option lists; Escape keeps the anchor selection
2026-11-20 22:02:52 -05:00
aiongg 68b0529bbf Merge pull request #2744 from aiongg/document-window-room
DocumentWindow: the body takes the window's room and never scrolls
2026-11-20 21:40:36 -05:00
aiongg eb28db6ba9 Merge pull request #2589 from aiongg/memo-stack
Memoized views: derived values; dock, Layers, menu and tool rail keys without model walks
2026-11-20 21:37:21 -05:00
aiongg 4201696e6b Merge pull request #2742 from aiongg/office-ruler
Text ruler: the tab selector shows in the corner its host gives
2026-11-20 21:26:32 -05:00
aiongg fd652b372d Merge pull request #2738 from aiongg/component-set-productivity
Component sets: Office is named Productivity
2026-11-20 21:19:04 -05:00
aiongg af50339b27 Escape keeps the anchor selection under Direct, Convert and Curvature
The overlay no longer clears the selection on Escape; the key goes on to the window as in 0.23.1.
2026-11-21 01:55:29 +00:00
aiongg a32fe7d6fd Option lists: hover moves only the lead
HoverLead (Off, Lead, LeadAndSelection) replaces lead_follows_hover. List::options takes Lead, so the hovered row no longer draws as the chosen option for a frame; UndoList keeps LeadAndSelection.
2026-11-21 01:50:30 +00:00
aiongg b66a60caf8 DocumentWindow: the body takes the window's room and never scrolls 2026-11-21 01:42:09 +00:00
aiongg 0ea84419cd Text ruler: the tab selector shows in the corner its host gives
PageRulers handed the text ruler the canvas's top strip, which starts after the
canvas corner, and the ruler cut its own corner square out of that strip, so the
selector sat one strip depth right of the corner, over the horizontal ruler, and
the corner stayed blank. The host now gives the corner (TextRuler::corner):
Rulers::strips returns it beside the strips, and PageRulers shows the ruler over
the top strip and the corner. The corner follows the host in either direction.

The selector's box is the icon size with the theme's small rounding, in the
column's colour with the state layer under the pointer; the corner continues the
strip round it; the glyph is centred by its own bounds.
2026-11-21 01:34:06 +00:00
aiongg 3eebedfcff Component sets: the productivity set 2026-11-21 01:19:14 +00:00
aiongg 1fac93e295 Merge remote-tracking branch 'upstream/next' into memo-stack
# Conflicts:
#	crates/ui-contract/src/contract/memo.rs
2026-11-21 01:06:55 +00:00
aiongg 3f440d3ff1 Merge pull request #2578 from aiongg/component-constants
Component constants and component sets (creative and office looks, rulers first)
2026-11-20 20:06:24 -05:00
FredApps f1c4dd50c9 Merge pull request #2672 from storytold/fix/registry-fixture-only
Gate downstream UI registrations on the suite feature
2026-11-21 07:39:13 +07:00
David Mann eb8e6c98e9 Merge pull request #2682 from davidmann4/fix/crop-idle-frame-keys
Crop: O, I, X and Shift+O stay the app's over the untouched frame
2026-11-21 01:04:44 +01:00
Martin Ball 05acb5587f Merge pull request #2566 from storytold/fix/7149-items2-3-start-cards
ui-shell: start-screen cards take the app's picture shape, size and paper; card tiles frame all four sides
2026-11-21 00:01:28 +00:00
Martin Ball aaa87b5754 Merge pull request #2568 from storytold/fix/7149-item7-top-clamp
pages: one rect for the page view and its canvas, so the page no longer jumps at the top with rulers on
2026-11-21 00:00:26 +00:00
aiongg 241990270c Docking tests from next: the workspace through its accessor and Arc 2026-11-20 23:44:01 +00:00
aiongg 5062108d5b Format the testing exports 2026-11-20 23:38:59 +00:00
aiongg d202ab2fec Merge remote-tracking branch 'upstream/next' into memo-stack
# Conflicts:
#	crates/ui-contract/src/testing/mod.rs
#	crates/ui-panels/src/docking/targets.rs
#	crates/ui-patterns/tests/it/docking/floating_area.rs
2026-11-20 23:37:01 +00:00
aiongg 268aa7893e Merge remote-tracking branch 'upstream/next' into component-constants
# Conflicts:
#	docs/contract-api.md
2026-11-20 23:35:49 +00:00
aiongg e0965cf0b0 Merge pull request #2678 from aiongg/text-memo-fix
Text layout memo: one measurement path, eviction by use, a total budget
2026-11-20 18:34:57 -05:00
FredApps 34908a057c Reuse existing suite-gated registration macro 2026-11-21 00:27:44 +01:00
aiongg 6f92d8e130 Merge pull request #2667 from aiongg/next-sync-1120c
Merge storytold main into next (20 Nov evening sync)
2026-11-20 18:13:07 -05:00
aiongg aa9e22db05 Merge pull request #2648 from aiongg/floating-restore
Floating dock windows: production's bar, grips and macOS resizing; grip bar and width resize for collapsed icon groups
2026-11-20 17:35:08 -05:00
David Mann 4bdd7b7e54 Crop: O, I, X and Shift+O stay the app's over the untouched frame
The Crop tool claimed I, X, O and Shift+O as soon as it showed its
untouched default frame (on picking the tool, after a commit, or on a
selection's bounds), so O cycled the overlay instead of picking the
Dodge group, I switched to Front Image instead of the Eyedropper, and X
swapped the frame instead of the colours. As in the reference application, the crop
now takes its keys only while a crop is pending, the way H and P
already were.

The key trial gave the canvas no keyboard before its first press, so
its untouched-frame half passed whatever the tool did; the rig now
focuses the canvas first.

Part of storytold/photocraft#6536.
2026-11-20 23:21:19 +01:00
FredAppsandClaude Opus 5.5 a79b975188 tile: no card frame over a flat thumbnail
The new frame over a card's picture also drew on flat thumbnails, which
have no sunken well to restore: the New Document preset cards gained a
second outline around their page, and
form_dialogs::new_document::recent_preset_cards_paint_one_small_page_at_its_aspect
failed on every leg. Frame only where the sunken well was painted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:10:52 +01:00
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
FredApps 599fcd462b Re-export suite helper through UI facades 2026-11-20 23:02:28 +01:00
FredApps ead1233137 Test dependency-gated registry helpers 2026-11-20 22:56:31 +01:00
FredApps 531d7bbd0f Gate generated registry helpers on dependency suite 2026-11-20 22:49:52 +01:00
aiongg 4e11e2b9d4 drawingml: the format doc link names the function 2026-11-20 21:43:12 +00:00
aiongg 5d72faf4b2 Cross-member reads on next: svg's font from ui-contract, font-manager declares Inter, pdf's Tiny-glyf fixture restored 2026-11-20 21:26:45 +00:00
aiongg 901f3c785b Merge remote-tracking branch 'upstream/main' into next-sync-1120c
# Conflicts:
#	.github/workflows/workspace.yml
#	crates/proof/src/affix_suggest.rs
#	crates/proof/src/it/suggest.rs
#	crates/proof/src/pl/suggest.rs
#	crates/proof/src/pt/suggest.rs
#	crates/proof/src/ru/suggest.rs
#	scripts/test-workspace-tests.py
2026-11-20 21:22:40 +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
aiongg c30c9e1749 Merge remote-tracking branch 'upstream/next' into memo-stack
# Conflicts:
#	crates/layers/tests/it/main.rs
#	crates/menu/tests/it/main.rs
#	crates/ui-contract/src/testing/mod.rs
#	crates/ui-contract/tests/it/runtime/mod.rs
#	crates/ui-widgets/tests/it/menu/mod.rs
2026-11-20 20:32:36 +00:00
aiongg baa3a2f258 Merge remote-tracking branch 'upstream/next' into ruler-look
# Conflicts:
#	crates/ui-contract/src/testing/mod.rs
2026-11-20 20:31:23 +00:00
aiongg 6fea865c9a Grip trial: the icon-rect closure is not named like an icon id 2026-11-20 20:31:09 +00: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