Update other objects to use new methods of Label
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user