Updated all objects to new API

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

View File

@@ -15,7 +15,7 @@ func NewHeading (level int, text string) *Heading {
if level < 0 { level = 0 }
if level > 2 { level = 2 }
this := &Heading { TextBox: tomo.NewTextBox() }
theme.Apply(this, theme.R("objects", "Heading", fmt.Sprint(level)))
tomo.Apply(this, tomo.R("objects", "Heading", fmt.Sprint(level)))
this.SetText(text)
return this
}