feat(gioui): add confirmation dialog when deleting instrument

Closes #5
This commit is contained in:
vsariola
2021-04-11 16:46:07 +03:00
parent a639e0c5e6
commit 1eca428801
5 changed files with 72 additions and 0 deletions

View File

@ -18,6 +18,8 @@ func (t *Tracker) Layout(gtx layout.Context) {
t.layoutTop,
t.layoutBottom)
t.Alert.Layout(gtx)
dstyle := ConfirmDialog(t.Theme, t.ConfirmInstrDelete, "Are you sure you want to delete this instrument?")
dstyle.Layout(gtx)
}
func (t *Tracker) layoutBottom(gtx layout.Context) layout.Dimensions {