Add feedback components 106-130; inert scope, focus return, two-step deploy

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 20:58:30 -04:00
1 parent bce416182e
commit bd3877e1b1
87 files changed
+2492 -147

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ type ViewportOptions struct {
// Viewport fills its parent and draws children at W×H dots.
func Viewport(c *ui.Context, o ViewportOptions, children func()) *ui.Element {
k := pixel.K(c)
vw, vh := orDef("Viewport W", o.W, 160), orDef("Viewport H", o.H, 144)
vw, vh := pixel.Or("Viewport W", o.W, 160), pixel.Or("Viewport H", o.H, 144)
base := int(k.Dot())
outer := ui.Box(c).Fill()
was := outer.Bounds()