f7c86ded80
A dialog is a component the app includes when its state says so, placed absolutely so it covers the flow instead of joining it, and dismissed by rebuilding without it. No layer stack, no module state, no lifecycle: "on top" already means "later in the child list", which the draw walk gives for free, and nothing needs to survive a rebuild because the tree is derived from state rather than mutated beside it. The alternative was a ui.push/ui.pop stack of roots. It would have been the only imperative thing in an otherwise declarative program, and needed rules to reconcile two ways for something to reach the screen -- the rule that a rebuild must only replace the base being the one that would eventually be forgotten. Three primitives were missing and are now here. capture makes a component swallow the taps its children missed, without which the hit walk falls back to earlier siblings and a dialog can be tapped through. border draws a box as a rounded rect. fill names a size a fraction cannot express, since any number >= 1 is read as pixels, so w = 1.0 asked for one pixel. The root now measures as "fill" rather than auto. It is placed at the full panel rect already, so its own children could not resolve a fraction of the one component whose size is never in doubt. Settings asks before forgetting a network, which is the first caller.