Updated all objects to new API

This commit is contained in:
Sasha Koshka 2024-05-26 17:21:58 -04:00
parent 06d99b2790
commit 6389556199
15 changed files with 48 additions and 46 deletions

View File

@ -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)