Commit Graph
286 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 90ca881c87 Merge pull request #2066 from davidmann4/fix-floating-panel-drag
Floating panel windows follow the pointer when dragged (photocraft#15478)
2026-11-18 19:52:53 +01: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 9442a099f2 Merge storytold next into themecraft-wave1 2026-11-18 16:05:01 +00:00
aiongg 016ca5425d Merge storytold next into themecraft-wave1 2026-11-18 14:01:25 +00:00
aiongg f1c8460306 Merge storytold next into picker-full 2026-11-18 14:01:22 +00: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 076fa67056 Merge pull request #2080 from aiongg/histogram-native-expand
Native dock windows: the app's move is known from the window's first pass
2026-11-18 08:49:51 -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 22d4cd8e8e Merge remote-tracking branch 'upstream/next' into picker-full 2026-11-18 05:29:03 +00:00
aiongg e157a6c330 Merge remote-tracking branch 'upstream/next' into themecraft-wave1 2026-11-18 05:29:00 +00:00
aiongg 04e1f2eda9 Merge remote-tracking branch 'upstream/next' into histogram-native-expand 2026-11-18 05:28:58 +00:00
aiongg 8bb7cc1223 Merge remote-tracking branch 'upstream/next' into label-scope-nested 2026-11-18 05:28:53 +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 6836ba18dc DockArea: groups and column bars settle by the host's spec version and the arrangement
DockPanels::spec_version versions the panels' specs, permissions and group headers. With it, each group's header and tab strip settle as a Lazy keyed by the pass's chrome key (spec version, config, lock, Auto-Collapse and the arrangement's panels and states, sizes left out), the shown body's version and how the group shows; the column bars take the chrome key. The tab titles, panel menu rows and command states are built only when a group runs.
2026-11-17 23:57:06 +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 7b745c75bf Colour picker: Photoshop's fixed Full arrangement, dialog buttons in a body slot
- FooterPlace::Body and FooterSlot: a container's footer drawn at the cell its body keeps; the footer step still
  runs it, so roles, platform order, Enter, Escape and Alt-Reset stay the dialog's. Dialog::button_place(ButtonPlace
  { Foot, Side, Body }) replaces side_buttons(bool); every caller updated.
- Grid::fit(GridFit { Stack, Fixed }) and layout::empty_cell, with the grid_fixed story.
- ColorArea sizes by AreaShape { Plot, Square } from tokens, never from the room.
- CompareSwatch: one block, new over current, one edge, captions, warnings column from the block's top.
- ColorWarningChip arrangement enum (Stacked, Beside) replaces beside(bool); icon.sm chips.
- Full: area and strip over Only Web Colors and the screen-pick button; compare block and actions slot over two
  field groups in grids that never stack; '#' in the radio column, hex field across the channel cells. No wrap, no
  alpha row, no OKLCH column (OKLCH rows join group 2 with their radios); Only Web Colors always shown.
- Compact: width from the plot area and strip; hex row with the screen-pick button at its end.
- ColorPickerDialog puts its buttons in the picker's slot; color_picker_dialog story.
- Trials: Full arrangement across rooms, densities and themes; dialog proportions and button cell; compact width;
  body-placed dialog buttons and their keys.
2026-11-17 18:20:35 +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 e6f337caa1 Controls that show their own text keep their name in a labelled row (output path link, preset buttons) 2026-11-17 17:07:55 +00:00
aiongg c4a14ef4db ThemeScope: a theme definition, mode, contrast and density for a container and everything it shows
A container's ThemeScope applies at its own env (step 1), so its surface, header,
rules, scroll bars, pads and focus ring resolve in the scope as well as its
regions, body and the layers opened from it; collections honour it too. The
root token cache keeps every entry read in the current frame, drops the least
recently read beyond eight, and moves a value hit onto the caller's Arc so the
next frames hit by pointer. The drag preview paints in the env of the region
the drag started in, a drop mark in its target region's tokens, and canvas
readouts in the asking region's env.
2026-11-17 16:26:20 +00:00
aiongg cea4209559 The test kit's child window pass lays out at the window's reported size; drop the FW-280 DIAG prints 2026-11-17 15:26:10 +00: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 ac43942a7e Dock: native::send_to, so it doesn't shadow placement::place 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 21fb984332 Merge branch 'fx/rail' into fx/all-1117 2026-11-17 14:46:03 +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 53ac626a31 next CI: derive Preview's Default, restore flatten_write's Cyan ink and main's craft-zip README line, gate the embedded-SVG test on tree, fix doc links
- craft-behavior: Preview<V> derives Default with #[default] Unchanged (clippy::derivable_impls on Rust 1.100).
- craft-prepress tests/flatten_write.rs: main's even-odd test needs the Cyan ink const.
- craft-svg: the embedded-SVG scene test needs the data-URL image resolver, which is behind feature tree.
- Docs: no links to private items (markdown, dwg, ui-patterns), no link to a crate that is not a dependency (frame), write() for the function (doc-binary), an autolink for the URL (update), Self::from_bytes (psd). craft-midi's source_timed and craft-pdf's cos::content keep only their inner docs, so their links resolve inside the module.
- README: main's craft-zip entry with its lenient reader sentence, lost in the 17 Nov merge.
2026-11-17 14:28:37 +00:00
aiongg 4a3c72f2db Look align: text parts ignore the host's egui size floor; options bars at the standard control size; selects in a bar fit their widest entry; check box labels in body type; title band glyphs at size.icon.sm with a faint kind caption; Inspector names its target at section weight; Transform fields fill two columns, W and H first 2026-11-17 06:13:31 +00:00
aiongg f42157c78b Merge branch 'fw276/check' into fw/mac1 2026-11-17 05:25:39 +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 757d559fd1 Merge branch 'red/p2fw' into fw/mac1 2026-11-17 05:21:34 +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