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.
Ported from storytold/wordcraft#6264 (issue storytold/wordcraft#6222), written before the RTF reader
moved here. A PAGE, NUMPAGES, SECTIONPAGES, SECTION or PAGEREF field whose result is plain text in
one formatting comes in as a field, with its lock, so the layout works out the number; \chpgn is a
PAGE field and keeps a tracked insertion or deletion; a result whose text was hidden stays as read.