I keep forgetting to commit stuff

This commit is contained in:
2023-08-10 17:52:01 -04:00
parent 8d7d9882ba
commit c0bfa76ba6
10 changed files with 213 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ type Button struct {
// NewButton creates a new button with the specified text.
func NewButton (text string) *Button {
box := &Button { TextBox: tomo.NewTextBox() }
theme.Apply(box, theme.R("objects", "Button"))
theme.Apply(box, theme.R("objects", "Button", ""))
box.SetText(text)
box.SetAlign(tomo.AlignMiddle, tomo.AlignMiddle)
box.OnMouseUp(box.handleMouseUp)