From 7835d6999fb912963f3db8e55cfd6daed73a415f Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 16 Oct 2019 21:11:16 +0200 Subject: [PATCH] widget/material: don't use translucency for disabled icon buttons Signed-off-by: Elias Naur --- widget/material/button.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/material/button.go b/widget/material/button.go index 989ecd68..953fbd49 100644 --- a/widget/material/button.go +++ b/widget/material/button.go @@ -127,7 +127,7 @@ func (b IconButton) Layout(gtx *layout.Context, button *widget.Button) { }) bgcol := b.Background if !button.Active() { - bgcol.A = 0xaa + bgcol = rgb(0xcccccc) } bg := st.Expand(gtx, func() { size := float32(gtx.Constraints.Width.Min)