You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale-android/cmd/tailscale
Denton Gentry 365b0ce6b0
ui: Fix background color of exit node status. (#75)
Prior to https://github.com/tailscale/tailscale-android/pull/73/,
the exit node status pane was set to a background color using:
    paint.Fill(gtx.Ops, bg)

paint.Fill() is documented to fill the entire clipped area.
It assumes that one has already applied a clip area... but
no clip area had been set in this code path.

As far as I can tell, that this worked prior to pull #73
was a bug, something had a side-effect of setting a clipping
rectangle.

We updated to the head of the Gio repo, which apparently fixed
that bug. After pull #73, the paint.Fill() painted the entire
app window.

Fix this using a stacked layout. A color filled widget is the
lower layer, and will expand to the size of the widget sitting
atop of it.

Fixes https://github.com/tailscale/tailscale/issues/6873

Signed-off-by: Denton Gentry <dgentry@tailscale.com>

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
1 year ago
..
backend.go go.mod: update from OSS. (#74) 1 year ago
callbacks.go android,cmd/tailscale: implement taildrop receive for Android < 10 3 years ago
google.png cmd/tailscale: add Google sign-in button 4 years ago
main.go cmd/tailscale: update to latest gioui.org. (#73) 1 year ago
multitun.go cmd/tailscale: implement new batch APIs (#71) 1 year ago
pprof.go cmd/tailscale: delete unused FileTargetsEvent; gofmt 3 years ago
store.go jni,cmd/tailscale: replace jni.EnvFor with explicit conversion 3 years ago
tailscale.png all: initial commit 4 years ago
tools.go cmd/tailscale: delete unused FileTargetsEvent; gofmt 3 years ago
ui.go ui: Fix background color of exit node status. (#75) 1 year ago