fix: upgrade to latest gioui (closes #97)

Latest gioui has the fix that enter key up event alone does not trigger a button
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-08-27 10:58:42 +03:00
parent 94926c5596
commit 33221b5203
4 changed files with 19 additions and 29 deletions

View File

@ -9,7 +9,7 @@ import (
)
var fontCollection []text.FontFace = gofont.Collection()
var textShaper = text.NewShaper(fontCollection)
var textShaper = text.NewShaper(text.WithCollection(fontCollection))
var white = color.NRGBA{R: 255, G: 255, B: 255, A: 255}
var black = color.NRGBA{R: 0, G: 0, B: 0, A: 255}

View File

@ -7,7 +7,6 @@ import (
"time"
"gioui.org/app"
"gioui.org/font/gofont"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/op"
@ -102,7 +101,7 @@ func (t *Tracker) UnmarshalContent(bytes []byte) error {
func NewTracker(model *tracker.Model, synthService sointu.SynthService) *Tracker {
t := &Tracker{
Theme: material.NewTheme(gofont.Collection()),
Theme: material.NewTheme(),
BPM: new(NumberInput),
OctaveNumberInput: &NumberInput{Value: 4},
SongLength: new(NumberInput),