Icons example uses new flow layout

This commit is contained in:
Sasha Koshka 2024-05-17 15:22:05 -04:00
parent fcac15ac4d
commit 1166850fe2

View File

@ -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 }))