commit f83358e73d14a56cdf25b113fd5f7152a92a710a
parent 592b8602951207d949ef9b66ed97183e2c7819b3
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date: Sat, 27 Feb 2021 16:24:21 +0800
fix: remove invisible cancel button
Diffstat:
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/cmd/kanban/widgets.go b/cmd/kanban/widgets.go
@@ -81,15 +81,6 @@ func (form *TicketForm) Layout(gtx C, th *material.Theme, stage string) D {
}),
layout.Rigid(func(gtx C) D {
btn := material.Button(th, &form.CancelBtn, "Cancel")
- btn.Color = th.Bg
- 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 {
- btn := material.Button(th, &form.CancelBtn, "Cancel")
btn.Color = th.Fg
btn.Background = color.NRGBA{}
return btn.Layout(gtx)
@@ -186,7 +177,7 @@ func (d *DeleteDialog) Layout(gtx C, th *material.Theme) D {
}),
layout.Rigid(func(gtx C) D {
btn := material.Button(th, &d.Cancel, "Cancel")
- btn.Color = th.Bg
+ btn.Color = th.Fg
btn.Background = color.NRGBA{}
return btn.Layout(gtx)
}),