The input hook releases a held press when an undecorated window's inner
size changes under it (the OS resized it and keeps the release). It
compared the sizes exactly. A window the app moves reports its size again
in points from its pixels, and at a fractional scale the same size comes
back a float step off (290.4 as 290.40002 at 125 %), so the hook released
the press a few points into every move of a floating panel on Windows.
A size now counts as changed only by more than 0.05 pt, far under one
physical pixel at any scale and far over that rounding.
Part of storytold/photocraft#15478.
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.
The grip was the layer's inline header: top-aligned in a rect as tall as
itself, on the layer's floating fill, while the members' Bar painted its
own square chrome surface beside it. The bar read as two shapes with the
grip off the line.
The grip is now the Bar's first member, so the row centres it inside the
bar's padding, and the Bar paints the one Floating surface (new
`Bar::surface`); the layer paints none. The layer keeps its empty inline
header for the move band, which still spans the whole line, so the grip
and every free point drag the bar.
Part of storytold/photocraft#15479.
The value readout painter moves into the ghost module (ghost::readout), which reads
the region's tokens from its EnvView, so EnvView::to_env stays crate-private for the
drag session. A layer container's room takes its screen inset from its own tokens,
as the host places it, and a collection's empty text measures in the collection's
tokens. DIAG prints for the NumberField label activation failure (to remove).
* har: preserve source reader history
Port Craft Anything crates/formats/src/har.rs from f64ae3bf3c8863a982af1304e06de20653803968.
* har: preserve source reader history
Port Craft Anything crates/formats/src/har.rs from cb0bb9d8fa4536ba44ef2c86f5ed759b879cc2d3.
* Expose shared HAR reader with explicit input admission
---------
Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: BFlat <bombayapirat@gmail.com>
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.
ThemeDef gains icon_pack (IconPackId), read and written as the top-level
icon_pack key of the v1 theme format. UiTokens::of_theme resolves a theme
and takes the icon set its pack names (craft.lucide, craft.phosphor,
craft.carbon, craft.tabler); a pack that is not installed draws the
default set. SvgIcon::of reads the set from the tokens, so IconSpec.set
is removed.
Store::save_theme replaces a library theme under the suite lock when its
file still has the stamp the caller loaded it with (StoreError::Changed
otherwise; built-ins refused) and bumps library_revision, sharing the
import/delete write steps. The disk backend replaces through craft_atomic
with the existing pre-rename guard, which now checks bytes for
selection.json and the stamp for a theme. Op::Save / OpOutput::Saved on
the worker; SuiteClient::save_theme, is_saving and take_saved, one save
in flight. Tests: store save, changed stamp, built-in refusal, client
round trip, and a save child in two_processes.