gofmt
This commit is contained in:
2 files changed
+13
-13
No files matched your search
@@ -34,7 +34,7 @@ func Button(c *ui.Context, label string, opts ButtonOptions) *ui.Element {
|
|||||||
k := Tokens(c)
|
k := Tokens(c)
|
||||||
d := Density(c)
|
d := Density(c)
|
||||||
b := ui.ButtonBase(c).MinHeight(d.ControlHeight()).MinWidth(theme.MinHitSize).
|
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)
|
Disabled(opts.Disabled || opts.Loading)
|
||||||
internal.Ring(b, k.Focus, theme.ControlRadius)
|
internal.Ring(b, k.Focus, theme.ControlRadius)
|
||||||
if opts.Label != "" {
|
if opts.Label != "" {
|
||||||
|
|||||||
+12
-12
@@ -20,18 +20,18 @@ var indexHTML []byte
|
|||||||
|
|
||||||
// mirror runs the gallery view headless and streams its frames.
|
// mirror runs the gallery view headless and streams its frames.
|
||||||
type mirror struct {
|
type mirror struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
tt *ui.Tester
|
tt *ui.Tester
|
||||||
frame []byte
|
frame []byte
|
||||||
seq int
|
seq int
|
||||||
hash uint64
|
hash uint64
|
||||||
seed maphash.Seed
|
seed maphash.Seed
|
||||||
subs map[chan []byte]struct{}
|
subs map[chan []byte]struct{}
|
||||||
wake chan struct{}
|
wake chan struct{}
|
||||||
urls int
|
urls int
|
||||||
told int
|
told int
|
||||||
clip string
|
clip string
|
||||||
enc png.Encoder
|
enc png.Encoder
|
||||||
}
|
}
|
||||||
|
|
||||||
func serveWeb(addr string, view func(c *ui.Context)) error {
|
func serveWeb(addr string, view func(c *ui.Context)) error {
|
||||||
|
|||||||
Reference in new issue
Block a user