81 Commits
Author SHA1 Message Date
aiongg 750a9bdd57 Merge pull request #2896 from aiongg/rework-d3
Focus: a removal's new focus is not revealed; the canvas text editor returns the focus to the canvas
2026-11-21 21:17:56 -05:00
David MannandClaude Opus 5.5 9597f188d5 Docking: grips are the reference's upright ticks; a tool rail gets a grip under its column bar (photocraft#16332, photocraft#16333)
The grip above each icon group of a collapsed column was a dotted hairline in a lighter ink than the panel
(7bf0a9b6d, e5e007233). The reference application draws its dock grips as ten upright ticks, one point wide,
four tall and one apart, a little darker than the panel in every interface colour, the same under the pointer.
`GripMarks` paints that row, through the new `Rule::ticks` (the dotted rule is now its square case) and
`Draw::grip_ticks` (exactly `count` marks at every scale).

A tool rail the host shows itself (a panel with a `DockGrid`, taken by `group_view`) now gets a grip strip of
`DockSizes::grip` on top, under its column bar: a `GroupGrip` with the ticks, whose drag moves the rail's group.
The host's view gets the room under it, and the group measures the strip on top of the view's height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:32:50 +01:00
aiongg e826abef73 focus: a leaf can open a focus scope; the canvas text editor returns the focus to the canvas
Component::FOCUS_SCOPE gives a leaf the scope ContainerProps::focus gives a container, through the leaf
shape's focus hook. TextEditor opens a scope that restores (FocusPolicy::TAB_LAYER), so a session that
ends hands the focus back to the stop it came from, the canvas, instead of the stop before the editor
(the rulers' corner, whose arrows moved the zero point after a commit; photocraft#15555). Regenerates
docs/contract-api.md.
2026-11-21 18:49:26 +00:00
aiongg 13353a0fd3 Merge pull request #2778 from aiongg/wc-regressions
Go To lands on the page, reveals stay in their scroll owner, the ribbon measures in its first frame
2026-11-21 13:48:35 -05:00
aiongg 71e51851ae Merge remote-tracking branch 'upstream/next' into wc-regressions
# Conflicts:
#	crates/ui-contract/src/layout/mod.rs
#	docs/contract-api.md
2026-11-21 17:53:07 +00:00
aiongg bd5ad6d7ce Merge remote-tracking branch 'upstream/next' into frame-cost-15493
# Conflicts:
#	docs/contract-api.md
2026-11-21 17:48:56 +00:00
aiongg fefaff4b05 Merge pull request #2804 from aiongg/rework-d2
Menus, panels, options bar, Preferences: title bar, panel groups, context menus, Info, prefs labels
2026-11-21 12:43:24 -05:00
aiongg ed9823347c contract-api.md regenerated after the next merge 2026-11-21 14:23:08 +00:00
aiongg 4c9df420e5 Regenerate docs/contract-api.md 2026-11-21 13:26:52 +00:00
aiongg 4b5b1b8893 Regenerate docs/contract-api.md 2026-11-21 08:58:37 +00:00
aiongg 39ab010b9b Regenerate docs/contract-api.md 2026-11-21 08:40:32 +00:00
aiongg ef10de8220 Regenerate docs/contract-api.md 2026-11-21 08:16:09 +00:00
aiongg 7a6827f5bf Overlay placement: a menu hung at a point also covers its anchor (photocraft#15552)
Most context menus hang from Anchor::Point (table header, rulers, ribbon,
places, versions, dock group menu). layer_covers_anchor decides every case in
one place: the pointer, the rect a context request named, and a point for a
layer whose key class is OwnerClass::Menu. Point-anchored layers that are not
menus (the iconic flyout, a popover at a point) keep their rule.

docs/contract-api.md regenerated.
2026-11-21 07:57:24 +00:00
aiongg 4614338402 Merge remote-tracking branch 'upstream/next' into wc-regressions
# Conflicts:
#	crates/ui-contract/src/layout/body.rs
#	crates/ui-contract/src/layout/mod.rs
#	crates/ui-widgets/src/layout_components/mod.rs
2026-11-21 07:32:55 +00:00
aiongg 786c71f812 craft-ui: remove Divider::length; regenerate contract-api.md
Divider::length has no caller since the ribbon groups fill their line; its story and trial go with it (the filling
divider trial stays). docs/contract-api.md is regenerated with the contract-api bin and lists ContainerProps::least_height
and Row::least_height.
2026-11-21 07:07:21 +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 3eebedfcff Component sets: the productivity set 2026-11-21 01:19:14 +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
aiongg 108a8a3550 contract-api: regenerated 2026-11-20 22:06:55 +00:00
aiongg 761faa9d3a Merge remote-tracking branch 'upstream/next' into floating-restore
# Conflicts:
#	crates/ui-contract/src/contract/body/hooks.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	docs/contract-api.md
2026-11-20 20:00:02 +00:00
aiongg b5edc283c0 Merge remote-tracking branch 'upstream/next' into ruler-look
# Conflicts:
#	crates/text/src/ui/ruler/stories.rs
#	crates/ui-canvas/src/canvas/rulers/stories.rs
#	crates/ui-gallery/src/chrome/card.rs
#	crates/ui-gallery/src/chrome/variants.rs
#	docs/contract-api.md
2026-11-20 19:21:26 +00:00
aiongg 48cef3fa60 contract-api.md: ScrollBarLook without its fade length 2026-11-20 17:42:03 +00:00
aiongg d73552cec7 Grips take exactly their rect: PartBuilder::exact_hit
Sensing grows every part's hit area to the pointer's target size (size.hit.target, 8 pt), so a 6 pt grip reached
1 pt past its rect on each side: a press 1 pt into a floating window's title row started a top resize, and the top
corners of a banded layer (6 pt tall) reached 8 pt. A part declared exact_hit keeps its declared shape as its hit
area. Every window grip and the edge pane's grip declare it: a frame's grip band is sized as its reach, its
neighbours own the points beside it, and the in-app hit area matches the platform's hit test for an exclusive grip.

docs/contract-api.md regenerated.
2026-11-20 17:06:56 +00:00
aiongg 2e6dc72e71 contract-api: InstallSpec's clipboard field and setter in source order 2026-11-20 15:30:40 +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
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
aiongg bddc593180 Merge storytold next into memo-audit-fix
Memoized views stay the one change mechanism: next's settling-path additions (modifier reads as bind keys, given-edit
and keymap unsettling, settle counters) give way to the tracked inputs that cover them, and request_own_repaint calls
become request_repaint. next's command board, node facts after the node check, the guide drag out of a ruler and the
CommandStates input are taken; the trials next wrote on Lazy::settles run on memoized views. The ruler guide env value
keys a view under the canvas in every pass of a drag. The replay audit's run in the gate takes next's target selection.
2026-11-20 10:26:06 +00:00
aiongg 0383e19b70 Keep a composite's faces out of the layout memory
A face measured by MeasureCx::face is part of its composite's measure
call: that call's answer and the inputs the faces read are the record
the layout memory keeps and checks. The face recorded a leaf of its own
under one id shared by every face of the composite, so only the first
face was kept, and a change to it that left the composite's size alone
dropped the kept measurements and asked for a discard pass.

measure_face measures a face as measure_under does, without the leaf.
2026-11-20 08:18:48 +00:00
aiongg ef1a365006 Lay out a text measured at its least once
TextRun::least (MeasureCx::least) returns the run laid out whole with its
least width, so a text measured at Proposal::Min no longer lays the whole
line out a second time for its height. A fitted select face takes its cap
from the same call. A select of 29 blend modes plus the mixed word lays out
56 texts per Min ask instead of 86.
2026-11-20 08:05:28 +00:00
Martin Ball e9f8979aac Merge craft-libs next 200447091 (memo-resolve, drag handles) into the WordCraft port: story command states through CommandStates 2026-11-20 00:36:56 +00:00
Martin Ball 6dedbe4fe6 skeleton: merge up/next into area/ribbon-fw with conflict markers left in (land step 1) 2026-11-19 20:42:08 +00:00
aiongg 20eec89c29 docs: regenerate contract-api.md 2026-11-19 16:41:17 +00:00
aiongg e31c08f0f6 docs: regenerate contract-api.md 2026-11-19 13:33:23 +00:00
aiongg 9bfa2c751b Command resolution only on change
Each kept resolution holds the key of what it read: the state's revision,
the gate's key and answer, a shared generation (keymap and catalog, scope
parents, instances and their liveness, modal facts) and, when read, the
focus generation, the focused stop's edits and a layer's or menu's vantage.
A reader whose key holds gets the kept Arc<ResolvedCommand>; the wake at
the start of a pass walks only when an input moved. CommandGate is a fn
plus props, asked once per command per key. App-scope states come from a
held Tracked<CommandStates>. resolve and resolve_command return
Arc<ResolvedCommand>. Under testing, every 100th pass compares every kept
resolution with a full one; count_resolve counts new, repeated and checked
resolutions.
2026-11-19 10:33:55 +00:00
Martin Ball 1ca3168b02 platform-w3: net change of 2 commits
- platform-w3: written from its sheet
- platform-w3: review fixes (review-1)
2026-11-18 17:25:03 +00:00
aiongg 0238e191e3 Native dock windows: the mount carries that the app moves the window (Overlay::moved_by_app), so its first pass knows it before the Windows hit test is routed 2026-11-17 18:10:29 +00:00
aiongg 3c2d6360c6 Merge branch 'fw/mac1' into fw/press-route 2026-11-17 05:32:46 +00:00
aiongg a70609d944 Press routing: exactly one root starts a press, the one whose shape is on top under it
The shape record keeps each shape's place in the pass's paint order and the clip it shows through, and which
root a transformed body layer belongs to. pointer::press_winner resolves every root recorded on the topmost layer
at the press (a body layer's root beneath its body) and gives the press to the root whose winning shape was
recorded last; egui's targets stay only to tell a raw egui widget on top. The sensing core starts a press on that
root alone, so a control under a later body-sized widget takes its press and a frame handle over a nested editor
wins over the editor. Member widgets over nested roots, which only steered egui's target, are gone.
Trials: a control under a later body widget; one root of three overlapping ones starts each press.
2026-11-17 05:31:53 +00:00
aiongg 6d972e35ed Rails: ToolRail lays out the columns its width holds with a measure and dock grid; PanelRail and the CanvasPanel rail removed 2026-11-17 03:59:55 +00:00
aiongg 5a6839a3b3 dialogs-w18: net change of 9 commits
- dialogs-w18: written from its sheet
- dialogs-w18: repair 1
- dialogs-w18: the grading tail reads dialogs-w17's blending and balance words; zone memory arms are statements (combine)
- dialogs-w18: review fixes (review-1)
- Integration: a kept binding with nothing stored reads its reset value
- dialogs-w18: review fixes (review-1): the mixer tab is a kept binding
- Integration: a component reads its running gesture's start value
- dialogs-w18: tone-zone drag reports absolute values (item 2)
- dialogs-w18: a mixed tone-zone value steps and drags from the zones' reset values (dialogs run round)
2026-11-15 04:46:07 +00:00
aiongg 54c2116152 docs: contract-api and components-index regenerated 2026-11-13 19:30:04 +00:00
aiongg 1e2a432679 SwatchPair: round wells take the pointer in their circle, trial for the well shape per theme; Color panel slider modes: the ramp takes the room the channel rows leave (least size.ramp.bar); SliderField keeps its field width from its measure; story-render --theme/--mode; Fixture::theme_id 2026-11-13 19:26:50 +00:00
aiongg 5b3749e34a docs: PaintUi::measure in contract-api 2026-11-13 19:26:50 +00:00
aiongg 80fa53719e docs: contract-api and components-index regenerated 2026-11-13 18:47:26 +00:00
aiongg 449e133c11 A resized anchored popover keeps only its size: each opening places it from its anchor or point at that size, with grips only on the edges its placement leaves free; Contour picker in 4 columns; contract-api regenerated 2026-11-13 18:40:30 +00:00
aiongg 3944c303e3 Popovers size from their content, at least their anchor's width below or above it, capped by the window; a collection measured from its content lays its rows out at the width it asks for; PresetPicker and PresetBrowser columns (default 6) give the grid's ideal width 2026-11-13 18:40:30 +00:00
aiongg 4daa178128 docs: contract-api and components-index regenerated 2026-11-13 18:38:51 +00:00
aiongg df9a3eee36 docs: contract-api and components-index regenerated 2026-11-13 18:28:08 +00:00
aiongg 5a0f8a6cdd docs: contract-api and components-index regenerated 2026-11-13 18:25:40 +00:00