Commit Graph
7245 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 7843e29364 Layers panel: a hidden layer's eye box stays empty under the pointer (photocraft#16321)
A list toggle cell drew its off icon under the pointer, so hiding a layer showed a crossed-out eye in its box until
the pointer left. The reference application leaves a hidden layer's box empty in every state. ToggleCell gains
`empty_off()`, which never draws the off icon, and the Layers panel's layer and sub-row eye cells use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:50:45 +01:00
David Mann 6e5490edc3 WIP: Layers panel: a hidden layer's eye box stays empty under the pointer (photocraft#16321) 2026-11-21 22:23:59 +01:00
aiongg 9ccaa3bdd6 Merge pull request #2872 from aiongg/memo-sizing-key
Memoized views replay in sizing passes (#2336)
2026-11-21 14:24:39 -05:00
Dylan M. Taylor 699f08b901 Merge pull request #2433 from vangel76/fix/checkbox-sweep-3333
Check or clear related checkboxes in one drag
2026-11-21 14:21:44 -05: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 72cc7a131d Merge pull request #2840 from aiongg/frame-cost-15493
Frame cost: tooltip text and AccessKit data only when needed
2026-11-21 13:38:59 -05:00
Dylan M. Taylor 5aee23ed85 Test immediate checkbox click after a sweep on the same control 2026-11-21 13:22:19 -05:00
Dylan M. Taylor 89032df543 Merge commit 'refs/prep/next' into dot-checkbox-2433 2026-11-21 13:21:38 -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 059d8c9ea3 Memoized views: derived returns the same Arc while its key is unchanged 2026-11-21 17:45:03 +00:00
aiongg cfe04c3ab4 Memoized views: a row unit replays in the row's measuring sweeps
With the flow facts out of the key, the counting sweep's call keys as the real call does, and an idle frame or a
frame at the same width runs a memoized row unit in none of the row's sweeps. The trials say so: the row-unit trial
asserts no measuring run, and the counting-call trial describes the call by its flow.
2026-11-21 17:45:03 +00:00
aiongg f300c5954a Memoized views: the header trial asserts every call replayed; a measuring replay's value holds the real run's layout
The trial checks the frame's memo log: three replays (the sizing pass and the real run of each of the frame's two
passes), the last pass's real run among them. MemoView::show and the runner say that a measuring call that replays
returns the kept real run's value, laid out in that run's room and flow, so a caller that measures takes the extent
the call reports.
2026-11-21 17:45:03 +00:00
aiongg f8888f8beb Memoized views: the flow of the body around a view is a fact of its place, not of its key
A container's measuring run lays its header and end regions out as a content column, and its real run does not;
a shrinking row's counting sweep shows its units unbounded, and its least probe at their least. With those flow
facts in the scope key, such a sizing call keyed apart from the kept real run, ran as a measure and could decide
"run" for the whole pass, so the real call ran too.

The flow facts (content column, given column, content axes, least measure, unbounded axes, cell fills, and whether
the leaves fit the view's room) move into a Flow that Place (real calls) and Measured (sizing and measuring calls)
hold, and each kind of call compares its own. Only a real call reads or writes the pass decision; a measuring call
checks the key and the rest of the predicate itself each time and decides nothing for the pass. This replaces the
per-call key exception and Place.fits. Env::local_mut clears the cached scope key, so a sweep that edits its scope
keys again.
2026-11-21 17:45:02 +00:00
aiongg adcff3f70a Merge pull request #2790 from aiongg/floating-expand
Docking: a collapsed native palette expands in place on macOS; a faint grip on icon groups
2026-11-21 12:43:36 -05: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 0f8a553365 Merge pull request #2796 from aiongg/rework-d1
Dialogs and prompts: Curves fields, Levels midtone, Windows prompt order, preset cards
2026-11-21 12:42:10 -05:00
David Mann 77c7c62345 Merge pull request #2860 from davidmann4/crop-grown-backdrop
RasterDisplay: a region fill past the document for Crop's grown-canvas preview (photocraft#16185)
2026-11-21 17:27:44 +01:00
David Mann 8fbff30223 Merge pull request #2830 from davidmann4/fix/2812-panels-read-mods
Panels and widgets read the modifiers, not the pointer frame
2026-11-21 17:27:30 +01:00
vangel76 aefc495087 Preserve completed checkbox sweeps across new presses 2026-11-21 15:53:21 +01:00
vangel76 a8813a11b9 Merge upstream next into the checkbox sweep port 2026-11-21 15:47:41 +01:00
aiongg e5e007233a Dots are one shared paint: Rule::dotted
The collapsed icon group grip is a faint dotted line: hairline dots one
dot apart, as the reference apps' grips. Guides' dotted line and the
grid's dots draw through the same paint, so each dot covers whole
physical pixels and a one-pixel dot no longer vanishes. The guides
stories show a dotted guide.
2026-11-21 14:46:57 +00:00
David Mann 2dd38baf49 RasterDisplay: a region fill past the document, under the picture (photocraft#16185)
Crop's preview of a crop that grows a Background shows the area it adds in the
background colour, as the commit fills it, instead of the checkerboard.
2026-11-21 15:46:10 +01:00
aiongg ed9823347c contract-api.md regenerated after the next merge 2026-11-21 14:23:08 +00:00
aiongg f016e24751 Merge storytold/next into rework-d2
Brings in craft-libs#2756 (frame-t3), #2810 (a memoized view in a row sits on the row's line) and #2838 (home rail look).

- egui pin and Cargo.lock: rework-d2's egui rev, which contains #2756's; frame-t3's serde line for craft-tracked.
- menu bar: EnglishFn goes with frame-t3's removal of english; rework-d2's docs stay.
- Env::start_view_room: keeps both column flags, then Shrink::Fit when the view fits.
- lazy::Place: both opacity and fits.
- Lazy::run_keyed: a memoized view's room is the row's cap when the row narrows it, else the flow region, and then moves down onto the row's line (on_row_line); the cap is horizontal and the move vertical, and the move keeps the room's size, so a kept run replays moved with it.
2026-11-21 14:23:08 +00:00
David MannandClaude Opus 5.5 806fe5b278 Preset browser trial follows #2756: a pointer move beside it replays it
#2756 made the browser read its rows from a PresetSource and read the
pointer and the modifiers only for its rows' events, so the browser part
of this branch is next's now. The trial builds its rows from a source
and checks the pointer move only: at rest the browser reads no
modifiers. Its tile view still fails without the tile grid change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:15:56 +01:00
David Mann 4cb54cc1dd Merge remote-tracking branch 'origin/next' into fix/2812-panels-read-mods
# Conflicts:
#	crates/ui-patterns/src/patterns/presets/browser.rs
2026-11-21 15:07:50 +01:00
aiongg 7d8b961515 Merge pull request #2756 from aiongg/frame-t3
Model-view-update: overlays and focused views replay; preset lists and menu facts as tracked inputs
2026-11-21 09:05:14 -05:00
David Mann 53d9f8028c Merge pull request #2838 from davidmann4/fix/home-rail-look-before-port
Home layout: the rail's look from before the PhotoCraft port (photocraft#15476)
2026-11-21 15:01:40 +01:00
David MannandClaude Opus 5.5 3b572a3954 Every panel and widget reads the modifiers, not the pointer frame (#2812)
The same read as in the Layers and Channels panels: pointer::frame(..).mods
notes the pointer as a tracked input, so a memoized view holding the
component ran on every pointer move in the window. pointer::mods returns
the same modifiers and notes only the modifiers. Fifteen more sites read
the frame for its modifiers only (the preset browser, the tile grid, the
section footer, the dock's drop, the canvas guides, the crop tool, the
bins, Color Range, the raw develop dialog, the table conditions, the form dialogs,
Save for Web) and the text style panel; each reads pointer::mods now.

The preset browser also reads the pointer's buttons, press and release
for its rows' events; it reads the frame only when there are events, so
a pass without one does not depend on the pointer.

In PhotoCraft this left Swatches, Gradients, Patterns, Styles, Shapes,
Tool Presets, Character and Paragraph Styles, Brushes and Glyphs running
on every pointer move over the canvas; with the change every docked
panel replays.

Trial: the preset browser in a host view replays on a pointer move
beside it, in its list view (fails without the browser change) and its
tile view (fails without the tile grid change), and Alt held runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:01:27 +01:00
aiongg c10002e09f Frame cost: one Access rule for components, members and faces
Collection members build their Access and sub-node only when the
collection has a node, and faces build their record's facts only for a
reported face of a host with a node: the component's node flag (step 8)
is one signal on its core that the report, members and faces read.
Without a node, a component builds Access only when its roles include a
merged one or both a role with a node and none.

Tooltip texts are counted where text_of and spec_text build them; part,
member and pointer tooltips borrow their spec. The tooltip trial checks
that the tip shows its text and builds it once a pass while it fades,
and none after; the Access trial adds an open menu and a tab strip's
members.
2026-11-21 13:43:10 +00:00
aiongg 4c9df420e5 Regenerate docs/contract-api.md 2026-11-21 13:26:52 +00:00
aiongg bc73cf5d1d Frame cost: tooltip text and AccessKit data only when needed
The report step builds a component's Access only for a reader: its node,
a merged role's facts, or a type whose role Access picks from
alternatives. With AccessKit off, a run takes only the value text. The
carried-name lookup moves below the node check.

A tooltip's text is built only when the pointer or keyboard wants the
tooltip or its layer still shows, at most once per call, and the tooltip
spec is borrowed instead of cloned on every run.

Count trials: 40 Field rows build no Access with AccessKit off; 40
unhovered icon buttons build no tooltip text, the hovered one builds its
own once a pass.
2026-11-21 13:26:52 +00:00
David Mann 687aad26e9 Merge pull request #2810 from davidmann4/fix/photocraft-16113-memo-row-line
A memoized view in a row sits on the row's line (photocraft#16113)
2026-11-21 13:55:54 +01:00
David MannandClaude Opus 5.5 ec5bcc602d Layers and Channels panels read the modifiers, not the pointer frame (#2812)
Both panels read pointer::frame(..).mods on every pass: the Layers
panel for its rows' held modifiers and its drop test, the Channels
panel before it takes its commands. pointer::frame notes the pointer
as a tracked input, so a memoized view holding either panel ran on
every pointer move in the window. pointer::mods reads the same
modifiers and notes only the modifiers.

Trials: a pointer move beside each panel replays its host view and Alt
held runs it; both fail without the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 12:28:28 +01:00
aiongg 282d45bb28 Help gives the help line's Text, which its callers show 2026-11-21 11:19:46 +00:00
David Mann 02be56cfbb A memoized view in a row sits on the row's line
A memoized view's content starts a layout room of its own (Env::start_room), so the view sat at the top of the
unwrapped Row around it while every other one-line child sits with its centre on the row's line. Since craft-menu's
bar became a memoized view, PhotoCraft's menu titles sat about 4 pt above the icon beside them (photocraft#16113).

The view's room now moves down by the whole pixels that put the centre of its extent (this pass's measuring run, else
its last run) on the row's line. The room keeps its size, so a kept run replays moved with it; a view taller than the
line reaches stays at the row's top, as place_in_cell keeps a child of more than one line.
2026-11-21 12:04:22 +01:00
David MannandClaude Opus 5.5 efb06e9951 Home layout: the rail's look from before the PhotoCraft port
The desktop Home layout (`StartScreen::home_layout`) drew its rail with the
dialog button look and inline links: pill New and Open, Home as a filled pill,
Learn and the community links underlined in the link colour, and the page
title as a Display heading. The rail is back to how PhotoCraft drew it before
it moved onto the framework (photocraft#15449):

- New and Open at the control radius.
- Every link a full-width row with its icon: muted at rest, normal under the
  pointer; a URL row opens its URL (its tooltip), a command row fires it.
- The selected row (Home) keeps normal ink and has an accent bar at its
  leading edge.
- The page title as a Heading.

Only the Home layout changes; the other start-screen layouts keep their links.

Part of photocraft#15476

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 11:54:42 +01:00
David Mann fb8aae1df6 WIP: memoized view in a row sits on the row's line (photocraft#16113) 2026-11-21 11:43:38 +01:00
aiongg 6c72055339 A memoized row unit's room follows the row, not its own content; a call's key is its own
A memoized view the row does not narrow shows as in no room, in the row's flow region, and its content sizes from its
content along x; only a row that narrows it cuts its room to the width it gives. The cap of a view the row did not
narrow was its own counted width, so new content changed the view's room and the discard pass ran it again. The
shrink record carries whether the row narrowed the unit.

The replay decision of a pass covers the kept run; each call compares its own key. A row's counting sweep calls the
view with another key (its content shows unbounded): that call no longer decides the pass against the real call
after it, and a sizing call takes the extent the last sizing run measured for its own key.
2026-11-21 10:42:23 +00:00
aiongg 2ef7bbff38 A field labelled above sits on a row's line by its control, as a control labelled above does
A container labelled above its body reports its body's first control line as the line it sits on in a row, so a
button beside a field labelled above sits level with the field's control, not its label.
2026-11-21 10:33:46 +00:00
aiongg b62b64af52 FloatingGroup::scale is a declared prop (display scale, pixels per point) 2026-11-21 10:20:12 +00:00
aiongg 9bb77ccba4 Preferences docs name host-labelled rows; trials for their search and for a palette's context menu popup 2026-11-21 10:18:40 +00:00
aiongg 69ed953094 Preferences: host-labelled rows show their rule's help and follow its enabled state 2026-11-21 10:18:40 +00:00
aiongg 8983476f09 Memo trial: a view in a shrinking row runs at most once per measuring sweep of the row 2026-11-21 10:18:40 +00:00
aiongg 75e8e49ef5 Overlay placement: only a menu's layer covers its anchor 2026-11-21 10:18:40 +00:00
aiongg 688df999d5 Layout: a labelled control's row takes its place in flow through place_in_cell, its control on the line 2026-11-21 10:18:40 +00:00
aiongg 8db22341b4 A memoized view in a Stack fits its content to its room, as in a shrinking row; the menu bar folds in any Stack 2026-11-21 10:18:40 +00:00
2946b2041a Icons on a Brand or Scrim surface paint their accent parts in their own ink; containers pass that ink down (#2569)
* #7149 item 4: an icon on a strong fill paints its accent parts in its own ink

A container that paints a Brand or Scrim surface now passes the strong-fill ink to what it holds, and Draw::icon paints an app icon accent layer in the icon colour when the ink is OnDark.

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

* design exceptions: the icon trial has a third fixed-tint site

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

* ui-contract: every filled surface sets its own container ink

A panel nested in a brand or scrim container no longer inherits the strong-fill ink. A frame or a surfaceless container keeps the ink it sits in.

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

* buttons trials: import ShowContainer for the nested Stack trials

next dropped ShowContainer from the shared import line, so the merged
tree failed to compile (E0599 on Stack::show in accent_icon_tints_in).

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-21 10:08:46 +00:00
David Mann fc1628e201 Merge pull request #2729 from davidmann4/fix/crop-resize-past-canvas
Crop: an edge or corner drag may take a document crop past the canvas
2026-11-21 10:43:15 +01:00