kanban

Kanban client in Gio
Log | Files | Refs | README | LICENSE

commit 2c7f4e45f2823b5f72d808243e16ee7d5b1f0ccf
parent 1eca6701a89004dcad28476c6a1ae05266400fec
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date:   Sat, 13 Feb 2021 18:36:48 +0800

fix: render cancel button

Diffstat:
Mcmd/kanban/widgets.go | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/cmd/kanban/widgets.go b/cmd/kanban/widgets.go @@ -84,6 +84,15 @@ func (form *TicketForm) Layout(gtx C, th *material.Theme, stage string) D { return D{Size: image.Point{X: gtx.Px(unit.Dp(10))}} }), layout.Rigid(func(gtx C) D { + btn := material.Button(th, &form.CancelBtn, "Cancel") + btn.Color = th.Fg + btn.Background = color.NRGBA{} + return btn.Layout(gtx) + }), + layout.Rigid(func(gtx C) D { + return D{Size: image.Point{X: gtx.Px(unit.Dp(10))}} + }), + layout.Rigid(func(gtx C) D { return material.Button(th, &form.SubmitBtn, "Submit").Layout(gtx) }), )