Updated all objects to new API
This commit is contained in:
parent
06d99b2790
commit
6389556199
12
button.go
12
button.go
@ -28,7 +28,7 @@ func NewButton (text string) *Button {
|
|||||||
ContainerBox: tomo.NewContainerBox(),
|
ContainerBox: tomo.NewContainerBox(),
|
||||||
label: NewLabel(text),
|
label: NewLabel(text),
|
||||||
}
|
}
|
||||||
theme.Apply(box, theme.R("objects", "Button", ""))
|
tomo.Apply(box, tomo.R("objects", "Button", ""))
|
||||||
box.label.SetAlign(tomo.AlignMiddle, tomo.AlignMiddle)
|
box.label.SetAlign(tomo.AlignMiddle, tomo.AlignMiddle)
|
||||||
box.SetLayout(buttonLayout)
|
box.SetLayout(buttonLayout)
|
||||||
box.SetText(text)
|
box.SetText(text)
|
||||||