diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-02-11 17:42:51 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-02-11 17:42:51 -0500 |
| commit | c8610ea4164403c418c3fc13aee13685aeff447f (patch) | |
| tree | 06e0d4b2012b791fd6bec059d6cde0fd22a3d5e1 /test/region | |
| parent | ebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f (diff) | |
| download | gui-c8610ea4164403c418c3fc13aee13685aeff447f.zip | |
add border layout
Diffstat (limited to 'test/region')
| -rw-r--r-- | test/region/main.go | 8 |
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() { |