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
@@ -19,7 +19,7 @@ type marqueeState struct{ offset, last int }
// Marquee scrolls s a dot a step; hover pauses it.
func Marquee(c *ui.Context, s string, o MarqueeOptions) *ui.Element {
k := pixel.K(c)
w := orDef("Marquee Width", o.Width, 120)
w := pixel.Or("Marquee Width", o.Width, 120)
e := ui.Box(c).Size(k.D(w), k.D(pixel.LineHeight)).Clip().Label(s).Role(ui.RoleText)
ms := ui.Local(e, marqueeKey{}, func() marqueeState { return marqueeState{last: -1} })
if k.Reduce() || e.Hovered() {