Initial commit

This commit is contained in:
2023-08-08 12:46:19 -04:00
commit 2aded017e1
4 changed files with 93 additions and 0 deletions

16
label.go Normal file
View File

@@ -0,0 +1,16 @@
package objects
import "git.tebibyte.media/tomo/tomo"
import "git.tebibyte.media/tomo/tomo/theme"
// Label is a simple text label.
type Label tomo.TextBox
// NewLabel creates a new text label.
func NewLabel (text string) Label {
box := tomo.NewTextBox()
theme.Apply(box, theme.R("objects", "Label"))
box.SetText(text)
return box
}