From 1166850fe2ae330b28ac244b45d5d633904dcdf0 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 17 May 2024 15:22:05 -0400 Subject: [PATCH] Icons example uses new flow layout --- examples/icons/main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/icons/main.go b/examples/icons/main.go index b263c0c..5f812b1 100644 --- a/examples/icons/main.go +++ b/examples/icons/main.go @@ -26,11 +26,7 @@ func (this *Application) Init () error { window, err := nasin.NewApplicationWindow(this, image.Rect(0, 0, 128, 256)) if err != nil { return err } - this.grid = objects.NewSunkenContainer ( - layouts.NewGrid([]bool { - false, false, false, false, false, false, false, false, false, false, false, false, - }, []bool { }), - ) + this.grid = objects.NewSunkenContainer(layouts.FlowVertical) this.resizeIcons(theme.IconSizeSmall) iconButtons := objects.NewInnerContainer(layouts.NewGrid([]bool { true, true, true}, []bool { false }))