Add feedback components 106-130; inert scope, focus return, two-step deploy
This commit is contained in:
87 files changed
+2492
-147
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ type BlinkTextOptions struct {
|
||||
// BlinkText blinks; under Reduce Motion it stays shown.
|
||||
func BlinkText(c *ui.Context, s string, o BlinkTextOptions) *ui.Element {
|
||||
k, sc := pixel.K(c), scale(o.Scale)
|
||||
fps := orDef("BlinkText FPS", o.FPS, 2)
|
||||
fps := pixel.Or("BlinkText FPS", o.FPS, 2)
|
||||
return block(c, k, s, pixel.Measure(s)*sc, pixel.LineHeight*sc, func(g pixel.Canvas) {
|
||||
if g.Step(fps)%2 == 0 {
|
||||
g.Text(0, 0, s, o.Slot, sc)
|
||||
|
||||
Reference in new issue
Block a user