Update other objects to use new methods of Label

This commit is contained in:
2024-08-24 19:56:58 -04:00
parent c7caa5bcb6
commit 3aa4b12ffe
6 changed files with 10 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ func NewIconMenuItem (icon tomo.Icon, text string) *MenuItem {
icon: NewIcon(icon, tomo.IconSizeSmall),
}
box.SetRole(tomo.R("objects", "MenuItem"))
box.label.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle))
box.label.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
box.SetAttr(tomo.ALayout(layouts.Row { false, true }))
box.Add(box.icon)