Commit Graph
138 Commits
Author SHA1 Message Date
aiongg 3bcc5bec46 Dock: a host view settles under its panel's content version
DockPanels::group_view ran in every pass, while the dock's own groups
settle their bodies under DockPanels::content. A host view now runs in a
settling Lazy under the shown panel's content version, the group's
panels and its shown tab, and repaints its last run while they hold.

Lazy::show_or carries the host's answer: the view runs first, and where
the host leaves the group to the dock, the dock's group shows in the
same child and that run is not kept, so the next pass asks the host
again. The run-count trial checks that a settled frame runs neither the
view nor the versioned body.
2026-11-18 20:59:41 +00:00
David Mann c4c4355e48 Merge remote-tracking branch 'origin/next' into HEAD
# Conflicts:
#	crates/ui-contract/src/runtime/windows.rs
2026-11-18 18:27:21 +01:00
aiongg f9a53dd0ee Merge pull request #2129 from aiongg/settle-chrome
Dock and title chrome settle like panel bodies (photocraft#15493)
2026-11-18 08:52:26 -05:00
aiongg 780c13fa81 Merge pull request #2127 from aiongg/toolbar-overlay-scroll
Toolbar: hover-only overlay scroll bar, one named drop mark per dock drag (photocraft#15524, photocraft#15526)
2026-11-18 08:50:18 -05:00
aiongg 0139ee11ae settle chrome: the settled bar trial runs its four frames again, and the docking runs name their settled dock
`(0..4).map(|_| frame()).next_back()` runs the frame once, not four times: a Map over a range steps from the back
without calling the closure for the other items. The trial runs three frames and checks the fourth.
2026-11-18 09:35:37 +00:00
aiongg 6d3dceca44 settle chrome: the column bar scopes without an id salt, and the tests drop the deprecated Ui::id and unused mut 2026-11-18 08:33:28 +00:00
aiongg caf0f01d00 Merge remote-tracking branch 'upstream/next' into settle-chrome 2026-11-18 05:29:08 +00:00
aiongg 36749e88a3 Merge remote-tracking branch 'upstream/next' into toolbar-overlay-scroll 2026-11-18 05:29:05 +00:00
aiongg 04e1f2eda9 Merge remote-tracking branch 'upstream/next' into histogram-native-expand 2026-11-18 05:28:58 +00:00
aiongg 5f10a501e4 Dock chrome settling: a group keeps its ids when its first tab changes
The group's scope takes the parent's next id, as the group did before it settled, and its Lazy is keyed by that scope's unique id; a column bar's Lazy is keyed by its scope's id under the column. Both stay unique inside a scroll area. Trials: a tab moved to the front keeps the shown body's ids, and Close in a settled group's panel menu closes the panel.
2026-11-18 00:23:14 +00:00
aiongg 381215eb5b Dock chrome settling: a run covers its group or bar, and drop-spot registration takes Sync panel types
A group's and a bar's run take no room in flow, so the settled run's rect is the group's or the band's: the pointer over it runs it again. A run record keeps each drop-spot registration, so the registering functions ask for Sync panel types; resolving keeps its bounds.
2026-11-18 00:08:33 +00:00
aiongg b5b0e6b6fd Trials: settled dock chrome, a drop on a settled group, a theme change and a settled menu bar's keys 2026-11-17 23:59:57 +00:00
aiongg f873abce2c Trials and a short-room story for the overlay bar and the named region mark 2026-11-17 23:44:00 +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 ed277c7a81 Trial: a click on the double arrow of a collapsed native palette at 125 % expands it 2026-11-17 18:10:29 +00:00
aiongg d25177f320 Native trial: the test OS clamps a window's size to its limits, as real ones do 2026-11-17 18:10:29 +00:00
aiongg 0df86e76c5 clippy: needless derefs in the pasteboard, an unused import and mut in docking trials 2026-11-17 17:45:35 +00:00
David Mann 2695cc1ed0 Window move: an app-run move follows the system pointer
Where the app moves an OS window itself (a floating panel on Windows), each
pass placed the window from the pass's pointer event, relative to where the
window reports itself. The event can be an older sample than the window's
current place, since the window moves between passes, so the window landed
behind the pointer every pass and the release left it there: on Windows a
400 px drag moved a floating panel about 260 px, and at times only the
click distance.

Where the platform tells the system pointer, the move now places the
window from it (pointer - grab - inset), at the drag's start, on each pass
and once more at the release. Platforms without a system pointer keep the
event-based place. The new `windows::system_pointer` never falls back to
the drag's own noted pointer, which `desktop_pointer` does, so the move
cannot feed its own place back.

Part of storytold/photocraft#15478.
2026-11-17 18:13:33 +01:00
aiongg 3008f7d476 Merge commit '7c04ac596a'; commit 'fc18baf87c' into fx/all-1117 2026-11-17 15:20:44 +00:00
aiongg 7c04ac596a A tab strip takes the drop over a band except near the band's line
Over a tab strip an edge, seam, column-edge or new-dock band takes the drop only
within DockSizes::strip_reach (the least hit size) of its drop line, as
production's STRIP_REACH rule did; the rest of the strip joins its group. A
strip on the layout's top edge takes tab joins again.
2026-11-17 15:20:27 +00:00
aiongg fc18baf87c The stale-pointer trial asserts the group's region mark; DIAG prints for the native stepped resize (FW-280) 2026-11-17 15:19:13 +00:00
aiongg 38bcf20e2c Drop preview trial: the groups under test sit clear of the layout's top edge band 2026-11-17 15:17:26 +00:00
aiongg a537a838d6 Merge branch 'fx/dropview' into fx/all-1117 2026-11-17 14:59:50 +00:00
aiongg 320762cb1e Dock drops mark the region the moved panels take
A dock drop's mark is DropMark::Region: the rect the moved panels take once
dropped, laid out from the layout after the drop by the functions the dock
draws with (tree frames, column cells, column group rects) in the room the
dock registered, pruned as the area shows it. A tab join adds its tab line; a
reorder in the own strip marks the line only. The ghost painter washes the
region with the drop rule's colour under the shared band. Region replaces
DropMark::Split; a spot without a placed rect marks a line along its edge.
2026-11-17 14:48:48 +00:00
aiongg 76974ad2b4 Merge branch 'fx/float' into fx/all-1117
# Conflicts:
#	crates/ui-patterns/tests/it/docking/native.rs
2026-11-17 14:46:20 +00:00
aiongg 98a5dca470 Floating dock windows keep their size and place in OS windows
A collapsed native window records its expanded rect, so expanding it restores
its size; an open OS window always carries its maximum size, so a lifted strip
limit reaches the OS; a viewport is sized within its own limits; a dock opens
OS windows only where its mount would, so a float over a full-screen window is
an in-app window that moves; a native window's edge is measured and recorded
in app coordinates. The floating window's title row shows the double arrow and
Close; its menu opens from the band.
2026-11-17 14:42:12 +00:00
aiongg 8d9f0414b3 Cross-window drags read the desktop pointer; the app runs the stepped resize of a native dock window
A window a drag did not start in takes the desktop pointer while the drag runs, never the place it last saw the
pointer itself: the source window holds the pointer, and the window may have had no exit (a palette laid over it).

A floating dock window whose column has steps is sized by its caller in an OS window too (Resize::by_caller): the
OS window is not OS-resizable, the app runs its grips and reports each step, the dock turns the resize into whole
steps and sends the window their rect at once. The input hook's release of an OS resize applies only to windows
the OS may resize.
2026-11-17 14:39:42 +00:00
aiongg 952556cf62 FW-276 trials: drop a diagnostic trial 2026-11-17 05:25:27 +00:00
aiongg a6c2980bb4 FW-276 trials: a context request on a collapsed floating window's band opens its menu, and Close closes the window 2026-11-17 05:25:07 +00:00
aiongg e1e4a8755b FW-276 trials: a floating window's title-row point lies on its band, clear of the actions the double arrow moved 2026-11-17 05:20:30 +00:00
aiongg d29927b928 FW-276 merge fixes: the rail sets its roving grid on its own props, trials import the traits they call 2026-11-17 05:17:42 +00:00
aiongg 1536ecd9c2 Dock: Shift+Tab keeps the panels the host's Except names, docked and floating; Dock Panel joins the first group that takes the unit; one title row height for floating windows
- hide::shown reads ShellCx::panels_hidden: the host's Except stays, any other hide hides every panel; a hidden
  dock (Tab) hides every panel. The columns no longer skip themselves on the shell's dock visibility.
- DockTo::Docked tries the dock columns' groups, then the docked tree's, as tabs, and takes the first the model
  takes under the permissions (drop::takes), so a toolbar's group is passed over.
- DockSizes::title_row is FloatingGroup's title row height; the window commands' source, stepped window heights
  and FloatSpace::title_row use it.
- Trials: hidden.rs, dock_back.rs, and the window group under the area's title row in floating_area.rs.
2026-11-17 04:26:50 +00:00
aiongg a4d5004009 Dock: a floating window keeps the edge its collapsed strip was dropped near; icons float collapsed under the pointer; top grips keep the bottom edge; a column that cannot collapse offers no collapse 2026-11-17 04:15:48 +00:00
aiongg 2f35c5be59 Dock UI: a stepped column's double arrow is named for the steps it switches to; a floating stepped window's left grip keeps its right edge 2026-11-17 04:03:22 +00:00
aiongg 92f11d415b Dock UI: the Window menu opens and closes the flyout of a panel in a collapsed column 2026-11-17 03:49:47 +00:00
aiongg b9ae41c995 Dock UI: stepped columns: whole content columns wide, as tall as their content docked and floating, edge drags and the double arrow set steps 2026-11-17 03:48:35 +00:00
aiongg e52471190d Dock UI: flyouts open on a side; a floating window keeps the edge its move began with; trials for floating columns 2026-11-17 03:44:05 +00:00
aiongg 7fdb17d53c Dock UI: rustfmt 2026-11-17 03:29:24 +00:00
aiongg aa46612ac9 Dock area: a floating window draws its one column as a dock column does
Pass::column shows a column, docked or floating: an IconicColumn while it is
collapsed, else a DockColumn, with what the user did turned into actions in
column_work. Each dock column calls it with its own bar; each floating window
calls it inside a FloatingGroup with ColumnBar::Window, the title row being
the column's bar: its double arrow sets the column iconic, and a collapsed
window shows its icons at their size against the float area's nearer edge.
The window's split tree, its split resizes and its minimized toggle are gone.
Trial: the double arrow collapses a floating window's column and expands it,
the window keeping its rect.
2026-11-17 03:28:18 +00:00
aiongg 3806fdbe8a Trial: an optional number row is held to its bounds and remembers its value while off 2026-11-16 23:43:41 +00:00
aiongg 1d2dd82a0c save for web: trial for the WebP 4-Up variants 2026-11-16 21:39:35 +00:00
aiongg b1766bb698 Merge remote-tracking branch 'upstream/next' into fw/mac1 2026-11-16 19:42:31 +00:00
aiongg 9b8dbfb332 Shell slots and dock panel bodies settle when they give a content version
Slot::content and AppShell::content give a slot the version of the app data it shows; DockPanels::content
gives one per panel body. With one, the slot or body runs in a settling Lazy. Trials: a versioned slot and a
versioned panel body run only when their version changes; a stroke whose tool asks for repaints runs no
versioned panel beside the canvas and one pass per move frame.
2026-11-16 17:42:23 +00:00
aiongg 5215f02eef Merge branch 'fw/dlg-a' into fw/mac1 2026-11-16 16:47:54 +00:00
aiongg 3829737b47 Trial: the stacked parameter layout stacks sliders and puts the buttons across the foot; Below keeps the button column 2026-11-16 16:42:19 +00:00
aiongg e86e041e13 Dock area: a group view lays out in a Ui held to its group's rect and clipped to it 2026-11-16 16:00:29 +00:00
aiongg 310439e6b4 Trial: only the last open group of a dock column fills it 2026-11-16 15:52:34 +00:00
aiongg 2103be6de1 Fix clippy and rustdoc errors in automation, draw, imaging, svg, ui-patterns and ui-widgets 2026-11-16 15:40:46 +00:00
aiongg 63a4811416 cargo fmt 2026-11-16 14:34:57 +00:00
aiongg fbe5a16ffe design-lint: api/non-exhaustive: #[non_exhaustive] on public types and variants, constructors where other crates build them 2026-11-16 13:31:29 +00:00