I keep forgetting to commit stuff
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user