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>sonos
parent
a0f2c883b4
commit
365b0ce6b0
Loading…
Reference in New Issue