aboutsummaryrefslogtreecommitdiffstats
path: root/test/region
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-02-11 17:42:51 -0500
committerSam Anthony <sam@samanthony.xyz>2026-02-11 17:42:51 -0500
commitc8610ea4164403c418c3fc13aee13685aeff447f (patch)
tree06e0d4b2012b791fd6bec059d6cde0fd22a3d5e1 /test/region
parentebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f (diff)
downloadgui-c8610ea4164403c418c3fc13aee13685aeff447f.zip
add border layout
Diffstat (limited to 'test/region')
-rw-r--r--test/region/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/region/main.go b/test/region/main.go
index ef7f9ac..0ea358c 100644
--- a/test/region/main.go
+++ b/test/region/main.go
@@ -26,11 +26,11 @@ func run() {
mux, env := gui.NewMux(w)
- // Background region
- bg := layout.NewRegion(mux.MakeEnv(), bgclr, layout.ResizeAll)
+ // Background
+ bg := layout.NewRegion(mux.MakeEnv(), bgclr, layout.Full())
- // Region on top of background, in bottom-right quadrant
- region := layout.NewRegion(bg, color.Transparent, layout.ResizeQuad4)
+ // Region in bottom-right quadrant
+ region := layout.NewRegion(bg, color.Transparent, layout.Quad4())
go blinker(region)
for event := range env.Events() {