summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-07-14 15:26:59 +0200
committerxengineering <me@xengineering.eu>2024-08-31 22:42:04 +0200
commite4f26f3844c77b8e10dc49f0db95ee34386b3c00 (patch)
tree275082270d56b49e51b73cd5f0106ca14dcdcb15 /gui.go
parent44bc88197196df41ead0ede734295cb2feac066d (diff)
downloadlimox-update.tar
limox-update.tar.zst
limox-update.zip
WIP: Update to gioui.org v0.7.1update
TODO: There is a race condition. It has to be fixed since the program immediately crashes. Building the software is possible.
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,