A native floating window moved by its title row lies over the mark the target under it shows. Its own ghost layer paints the mark too, mapped to the same desktop place through the windows' inner rects, the mapping pointer_in uses, so the mark reads over the faded window.
A collection picks its row drag preview with one named option, RowPreview (Badge, Named, None), in place of the drag_badge flag. A dock tab strip takes Named, so a tab drag shows the panel's name inside the region a drop takes, as group, column and icon drags do, with no badge by the pointer.
A tab join marks the group under the pointer at its current size, with the tab line, as production did; other drops keep the rect the panels take once dropped.
Dock area: upstream's specs/Arc workspace/memo rewrite with the port's top inset, rail footer,
IconicMode::Rail widths, group view room and title count/caption/command re-applied.
Form dialogs: upstream's held answer, preset sources and button place with the port's tabs,
read-only, Document layout, host notes, one action channel and preview pager; both
beside_previous and beside_next rows in one section_rows; SetOrClear carried into
PasswordFields as an opt-in clearable.
Preferences (L-312): upstream's PreferencesPage structure with a PreferencesLayout option,
Paged by default, Cards carrying the port's scrolling cards, segmented short choices and
match count; body.rs removed.
257 conflicted files staged with their conflict markers (630 hunks). The one
modify/delete, crates/ui-patterns/src/patterns/preferences/body.rs (deleted
upstream, modified by the port), keeps the port's file for its area to carry
into upstream's preferences/page.rs. Plan: landing/fw-sync-plan.md.
A docked stepped column (a tool rail) was clamped to its content's height, so under a docked
toolbar the window background showed instead of the toolbar's surface. The reference
application keeps the docked toolbar's column surface down to the dock's foot, with the tools
at the top. Docked, a stepped column now takes the dock's height like any column; a floating
stepped window stays as tall as its content.
The dividers between docked columns and between a dock and the document area were the inline
gap (6 px comfortable, 4 compact); the reference application's are 3 px at 100%. They are now
the tight gap (3 px comfortable, 2 compact).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupDrag carries the press a rail's grip started it with; a drop that
moves the floating window it is the whole of moves the window by the
pointer's travel from there (kept inside the float area) and keeps its
size, instead of putting its title row under the pointer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The grip under a tool rail's column bar starts a drag of the rail's group;
released over empty room it floated the group under the pointer, which the
model refuses for a group that floats already, so a floating toolbar's grip
did nothing. A unit that is a whole floating window now moves that window
under the pointer (Action::MoveFloating), as its title row does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shape.grip in a theme file sets the grips' marks: ticks or dots, how many,
a tick's length, a mark's width and the gap. Each value is optional and
keeps the default, now eleven ticks five points tall (one more mark and
one point taller than the reference application's ten of four). The
theme editor, the writer (unknown keys kept) and the token dumps carry it;
GripMarks paints from the tokens.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dock grips drew their marks at 0.83 of the panel colour, as the references do on their lighter
panels; on our dark panels that is #2a2a2a on #323232, almost invisible, and no theme could choose
it. The marks now use a `line.grip` token: by default two steps from the panel (lighter in dark
mode, darker in light mode; Pro dark #474747 on #323232), and a theme can pin its own.
Fixesstorytold/photocraft#16406.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
AppKit keeps a window's bottom-left corner when its size changes (winit's
`request_inner_size` is `setContentSize`), so every size the app sent moved
the window's top edge by the height it gained or lost: a collapsed dock
palette expanded by its double arrow grew upward, often past the top of the
screen, and the dock then recorded that place as the user's. `act` follows
each `SetInnerSize` on macOS with the top-left corner the caller knows the
window at.
The test kit gains `AppKitWindow`, which runs window commands as AppKit
does; the macOS dock trials use it. New trials: a palette collapsed and
expanded by its double arrow, and a collapsed palette dragged by its title
row and by its group grip, on a Retina Mac.
Refs storytold/photocraft#15486
The rule under a floating window's title row takes the divider's width
in whole physical pixels on the display the window lays out on. An OS
window on another monitor (a laptop at 2x with an external display at
1x) laid its rule out at its own scale while the dock sized it at the
main window's, so the window was half a point short and cut its last
row.
DockSizes keeps the rule's width and the display scale it is for, and
at_scale gives the sizes at an OS window's own scale
(native::pixels_per_point: its monitor's scale from the window facts
with the app's zoom). DockArea::windows sizes each OS window's chrome
at that scale and hands it to FloatingGroup; in-app windows keep the
main window's.
A window's caller place now counts as a change when it moves the window
by more than half a physical pixel on its display, not half a point, so
a window that changes displays takes a one-pixel correction at 2x.
A floating group draws a divider rule under its title row
(HeaderRegion::rule), and the container lays the rule out in a band of
its own: the divider's width in whole physical pixels (0.8 pt at
125 %). DockSizes::window_chrome left that band out, so a window sized
from its content (a collapsed palette, a minimized window, a stepped
window) was one pixel short and cut the bottom of its last row.
DockSizes::title_rule is the divider rule's band from the same token
and display scale the container uses, window_chrome adds it, and
FloatingGroup takes its chrome from DockSizes, so the dock and the
group size the window with one value. The collapsed and minimized
native palette trials check that the window fits its content exactly.
A collapsed floating window is 40 pt wide, so its flyouts, the double
arrow's tooltip and the panel menu could not show inside it: the tooltip
wrapped one letter per line ("E x") and the flyouts opened outside the
window (#15861).
Every layer the overlay host shows from a palette window (a dock window
or a popup window, at WindowLevel::Palette) now shows in a popup window
of its own (WindowSpec::popup), placed in desktop points within the work
area around the palette (windows::popup_room, overlay::layer_room).
Layers from the main window stay in it; full-window layers cover their
own window.
- The popup's pass shows the layer and records it in the popup's stack,
with its focus scope and Escape/Enter/activation dismissal. The
opener's pass records an entry standing for the window
(OpenEntry::popup), so family closes, the anchor and outside presses
in the opener work as before; family closes also reach the layers in
popup windows.
- A press in another app window closes an outside-closing popup, and a
popup closes when the app loses focus.
- Popups that take keys take the OS focus and hand it back to their
opener on close; tooltips take no focus and let the pointer through.
- A layer without a measured size (a tooltip) is laid out in the popup's
pass, in the work-area room, and placed by the size it took there.
- A palette column passes no main-window bounds to its flyouts.
- The test kit keeps facts per popup window.
The layer host shows a layer whose move band is being dragged at the drag's
rect for this pass: the rect the layer had when the band was pressed, moved
by the pointer's travel, within its bounds. window_drag runs the drag from
the same rect. A caller that places the layer (placed, placed_at, or an
anchored layer it places once moved) writes its place once, on the Commit.
- The task bar writes its place on the drop only: one edit, no lag.
- A floating dock window in the app window reaches the workspace on the
drop only; resizes and keyboard moves keep their gesture edits.
- A layer root inside an opener's arena steps its press machine early, as
its steps 6 to 16 sense in its own arena: the host reads this pass's band
press before it places the layer.
Trials: a dragged task bar and a dragged floating window stand under the
pointer in each frame, in one pass, and are placed once, on the drop.
The window's column takes one held-height state shared with the collapsed
column: WindowColumn::held is the content height, and collapsed the strip's
own width. A column whose every group is minimized shows at its rect's place
and width with the title row and strips' height (DockSizes::minimized_height);
its sides resize the width, and WindowColumn::kept keeps the rect's height, so
an OS window's recorded placement and an in-app window's rect keep the
expanded size and a restore gives it back. Stepped columns keep fitting their
content, which already measures minimized groups as strips.
Fixesstorytold/photocraft#15862.