This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:04:34 -04:00
1 parent 1704e2a619
commit d114ec4d7f
2 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -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 != "" {
+12 -12
View File
@@ -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 {