diff --git a/button.go b/button.go index 376f8b0..27b6d0c 100644 --- a/button.go +++ b/button.go @@ -34,7 +34,7 @@ func Button(c *ui.Context, label string, opts ButtonOptions) *ui.Element { k := Tokens(c) d := Density(c) b := ui.ButtonBase(c).MinHeight(d.ControlHeight()).MinWidth(theme.MinHitSize). - Padding(0, d.Unit()*4).Gap(d.Unit()*2).Radius(theme.ControlRadius). + Padding(0, d.Unit()*4).Gap(d.Unit() * 2).Radius(theme.ControlRadius). Disabled(opts.Disabled || opts.Loading) internal.Ring(b, k.Focus, theme.ControlRadius) if opts.Label != "" { diff --git a/examples/gallery/web.go b/examples/gallery/web.go index fac1a9b..dd58a50 100644 --- a/examples/gallery/web.go +++ b/examples/gallery/web.go @@ -20,18 +20,18 @@ var indexHTML []byte // mirror runs the gallery view headless and streams its frames. type mirror struct { - mu sync.Mutex - tt *ui.Tester - frame []byte - seq int - hash uint64 - seed maphash.Seed - subs map[chan []byte]struct{} - wake chan struct{} - urls int - told int - clip string - enc png.Encoder + mu sync.Mutex + tt *ui.Tester + frame []byte + seq int + hash uint64 + seed maphash.Seed + subs map[chan []byte]struct{} + wake chan struct{} + urls int + told int + clip string + enc png.Encoder } func serveWeb(addr string, view func(c *ui.Context)) error {