summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/gui.go b/gui.go
index 55730df..9b8e04d 100644
--- a/gui.go
+++ b/gui.go
@@ -4,14 +4,18 @@ import (
"image/color"
"log"
- "gioui.org/io/system"
+ "gioui.org/app"
"gioui.org/layout"
"gioui.org/text"
"gioui.org/widget/material"
)
-func (l *Limox) draw(e system.FrameEvent) {
- gtx := layout.NewContext(&l.Operations, e)
+func (l *Limox) draw(e app.FrameEvent) {
+ gtx := app.NewContext(&l.Operations, e)
+
+ if l.MainButton.Clicked(gtx) {
+ l.buttonCallback()
+ }
flex := layout.Flex{
Axis: layout.Vertical,