Files
craft-libs/crates/ui-patterns/src
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
..