diff options
Diffstat (limited to 'go/ui/button.go')
| -rw-r--r-- | go/ui/button.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/ui/button.go b/go/ui/button.go index 0fd26936..78ab459f 100644 --- a/go/ui/button.go +++ b/go/ui/button.go @@ -12,7 +12,7 @@ import ( type Button interface { Widget - Click(x, y int) + Clickable } type SimpleButton struct { @@ -24,7 +24,7 @@ type SimpleButton struct { } func NewSimpleButton(x, y, w, h int, label string, onClick func(b *SimpleButton)) *SimpleButton { - sb := &SimpleButton{NewWidgetBase(x, y, w, h), label, onClick, gray, color.White} + sb := &SimpleButton{NewWidgetBase(x, y, w, h), label, onClick, Gray, color.White} sb.renderImpl = func() *ebiten.Image { return sb.render() } return sb } |
