mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
cmd/gogio/testdata: always clear background to white
The webassembly port changed to use transparent black to allow content below Gio to show through. However, the end-to-end tests expect a white background. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Vendored
+2
@@ -67,6 +67,8 @@ func loop(w *app.Window) error {
|
||||
return e.Err
|
||||
case system.FrameEvent:
|
||||
gtx := layout.NewContext(&ops, e)
|
||||
// Clear background to white, even on embedded platforms such as webassembly.
|
||||
paint.Fill(gtx.Ops, color.NRGBA{A: 0xff, R: 0xff, G: 0xff, B: 0xff})
|
||||
layout.Flex{Axis: layout.Vertical}.Layout(gtx,
|
||||
layout.Flexed(1, func(gtx C) D {
|
||||
return layout.Flex{Axis: layout.Horizontal}.Layout(gtx,
|
||||
|
||||
Reference in New Issue
Block a user