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
@@ -31,7 +31,7 @@ func Odometer(c *ui.Context, value int, o OdometerOptions) *ui.Element {
panic(fmt.Sprintf("text: Odometer value %d is negative", value))
}
k := pixel.K(c)
digits := orDef("Odometer Digits", o.Digits, len(strconv.Itoa(value)))
digits := pixel.Or("Odometer Digits", o.Digits, len(strconv.Itoa(value)))
if value >= int(math.Pow10(digits)) {
panic(fmt.Sprintf("text: Odometer value %d needs more than %d digits", value, digits))
}