aboutsummaryrefslogtreecommitdiffstats
path: root/test/rows
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-02-10 17:20:34 -0500
committerSam Anthony <sam@samanthony.xyz>2026-02-10 17:20:34 -0500
commitebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f (patch)
tree625376cfc4b0ee82a02e340a2fe813882b6047c4 /test/rows
parent430f97bed9d758de90a72b0c06b2be1989ba2b1d (diff)
downloadgui-ebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f.zip
remove layout options
Diffstat (limited to 'test/rows')
-rw-r--r--test/rows/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rows/main.go b/test/rows/main.go
index 9848ddf..29b7344 100644
--- a/test/rows/main.go
+++ b/test/rows/main.go
@@ -17,7 +17,7 @@ const (
rowWidth = 128
)
-var bg = gui.HexToColor("#ffffea") // background color
+var bgclr = gui.HexToColor("#ffffea") // background color
func main() {
mainthread.Run(run)
@@ -30,8 +30,8 @@ func run() {
}
mux, env := gui.NewMux(w)
-
- rows := layout.NewRows(mux.MakeEnv(), nrows, layout.Background(bg))
+ bg := layout.NewRegion(mux.MakeEnv(), bgclr, layout.ResizeAll)
+ rows := layout.NewRows(bg, nrows)
for i, row := range rows {
go colorBlock(row, image.Pt(rowWidth, rowHeight), color.RGBA{uint8(i * 256 / 4), 0x20, 0x20, 0xFF})
}