Commit Graph
7263 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 058df7d51a Docking: a tool rail's grip strip is a memoized view (photocraft#16333)
The grip strip under a host-shown rail's column bar (#2934) ran its
GroupGrip in every pass, also when the only input was the pointer
moving elsewhere, where the column bars and tab rows replay. It is now
a MemoView held to the strip, keyed by the rail's group, with the drag's
start leaving through an outbox; the group's size goes on the drag
outside the view as the column bar does it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:20:51 +01:00
David Mann cec6d87ff2 Merge pull request #2939 from davidmann4/fix/about-float-room
Dialogs: a layer's body leaves its footer room when it fills (photocraft#16326)
2026-11-22 01:37:30 +01:00
David Mann 4fc1e38945 Merge pull request #2934 from davidmann4/fix/photocraft-16332-grip-ticks
Docking: grips are the reference's upright ticks; a grip under a tool rail's column bar (photocraft#16332, photocraft#16333)
2026-11-22 01:37:10 +01:00
David Mann 7960974ea4 Merge pull request #2929 from davidmann4/fix/about-tab-spacing
About: set the About tab's blocks apart and centre the button and links (photocraft#16325)
2026-11-22 01:36:54 +01:00
David Mann c484499138 Merge pull request #2932 from davidmann4/fix/16328-canvas-scroll-range
Canvas scroll bars: pasteboard range, thumb stays under the pointer (photocraft#16328, photocraft#16329)
2026-11-22 00:37:48 +01:00
David Mann 06e460abbb Merge pull request #2931 from davidmann4/fix/menu-bar-space-hand
menu bar: Space on a focused title opens no menu (photocraft#16327)
2026-11-22 00:37:22 +01:00
David Mann 3263c55f58 Merge pull request #2919 from davidmann4/fix/photocraft-16321-hidden-eye-hover
Layers panel: a hidden layer's eye box stays empty under the pointer (photocraft#16321)
2026-11-22 00:36:38 +01:00
David MannandClaude Opus 5.5 2749cb5229 Docking: no doc link from the public grip option to the private marks style (photocraft#16332)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:24:21 +01:00
David MannandClaude Opus 5.5 06238616d4 Dialogs: a layer's body leaves its footer room when it fills (photocraft#16326)
A layer's measuring run lays its body out before the footer runs, so a body
that fills the layer's room (a scrolling list, About's Contributors grab bag)
took the footer's height too. The layer came out taller than its room by the
footer, with empty space under the buttons, and in a small window it ran past
the window's bottom edge.

When what a layer with a footer took is taller than its room, the run is now
taken back and the body laid out again beside the footer that run measured,
as a capped inline body already is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:44:58 +01: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
David MannandClaude Opus 5.5 dc89eb1d3a menu bar: Space on a focused title opens no menu (photocraft#16327)
A lone Alt tap or F10 puts the keyboard on the in-window menu bar. The
titles took Space as their activation, so Space opened the lit menu
(File), and a held Space went on to run its first row. In a canvas app
Space is the momentary Hand, and the reference application never opens a
menu with it.

- The titles activate on Enter only; Down opens the menu as before.
  Space goes on to the app's shortcuts, and a shortcut pressed on the bar
  already gives the keyboard back to the stop the bar took it from.
- A bar that takes the keyboard while nothing holds it remembers the
  window's document canvas (the key target then) as that stop, so the
  shortcut and Escape give the keyboard back to the canvas instead of
  leaving the bar lit, where the next tool letter would open a menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:31:58 +01:00
David MannandClaude Opus 5.5 a10089e3f6 WIP: Dialogs: a floating dialog's body stays inside the window when it grows (photocraft#16326)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:17:43 +01:00
David MannandClaude Opus 5.5 e75b255e63 About: set the About tab's blocks apart and centre the button and links (photocraft#16325)
The centred layout drew the blurb, version, community button, link row and
built-with line in one stack at the row gap, and its rows were only as wide
as their content, so nothing was centred and no block stood apart. The
blocks now sit apart by the section gap, and the body and the About tab
take the dialog's width, so the button and the link row centre in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:16:23 +01:00
David Mann b572143761 WIP: Docking: grips as the reference's upright ticks; a grip under the toolbar's header (photocraft#16332, photocraft#16333) 2026-11-21 23:02:39 +01:00
David MannandClaude Opus 5.5 0712064ab1 Canvas scroll bars: pasteboard range, thumb stays under the pointer (photocraft#16328, photocraft#16329)
With Overscroll on, the bars' range takes in the pasteboard: at either end
of a track 100 screen points of the document stay in view at the opposite
edge, at any zoom and for documents larger or smaller than the window, as
measured in the reference application. Overscroll off is unchanged.

A thumb drag keeps the range the bar had at the press and maps the
pointer's movement from the press onto it, so the thumb stays under the
pointer: past a track's end the view waits, and moving back moves it again
in the same drag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:02:38 +01:00
David Mann ca3d21835d WIP: Canvas scroll bars: pasteboard range and a thumb that stays under the pointer (photocraft#16328, photocraft#16329) 2026-11-21 23:00:28 +01:00
David Mann c1a34f7d8d WIP: menu bar: Space on the focused bar leaves it and reaches the Hand (photocraft#16327) 2026-11-21 22:58:36 +01:00
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 MannandClaude Opus 5.5 d9686ea983 WIP: About: set the About tab's blocks apart and centre the button and links (photocraft#16325)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:49:56 +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