fix: make the buttons non-responsive to the spacebar

This commit is contained in:
qm210
2024-11-02 21:14:50 +01:00
committed by GitHub
parent 2a2934b4e4
commit b08f5d4b1e
8 changed files with 753 additions and 17 deletions

View File

@ -8,6 +8,7 @@ import (
"gioui.org/unit"
"gioui.org/widget/material"
"github.com/vsariola/sointu/tracker"
patched "github.com/vsariola/sointu/tracker/gioui/patch/material"
)
type Dialog struct {
@ -22,9 +23,9 @@ type DialogStyle struct {
Text string
Inset layout.Inset
TextInset layout.Inset
AltStyle material.ButtonStyle
OkStyle material.ButtonStyle
CancelStyle material.ButtonStyle
AltStyle patched.ButtonStyle
OkStyle patched.ButtonStyle
CancelStyle patched.ButtonStyle
Shaper *text.Shaper
}