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 NewButton (text string) *Button {
label: NewLabel(text),
}
button.box.SetRole(tomo.R("objects", "Button"))
button.label.SetAttr(tomo.AAlign(tomo.AlignMiddle, tomo.AlignMiddle))
button.label.SetAlign(tomo.AlignMiddle, tomo.AlignMiddle)
button.box.SetAttr(tomo.ALayout(buttonLayout))
button.SetText(text)