mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-20 09:32:26 +01:00
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.