Introduce new layouts.Grid construct

This commit is contained in:
2024-06-22 18:44:26 -04:00
parent ae1e62c1f2
commit e8a3a376ea
7 changed files with 17 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ func NewMenuItem (text string) *MenuItem {
}
box.SetRole(tomo.R("objects", "MenuItem", ""))
box.label.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
box.SetLayout(layouts.NewGrid([]bool { false, true }, []bool { true }))
box.SetLayout(layouts.Row { false, true })
box.Add(box.icon)
box.Add(box.label)