From 0559393633ca83dec879cfcc5af21e4c946ee439 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 14 Oct 2019 15:07:48 +0200 Subject: [PATCH] widget/material: don't use transparency for disabled buttons Signed-off-by: Elias Naur --- widget/material/button.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/material/button.go b/widget/material/button.go index bf9b55e8..25c03767 100644 --- a/widget/material/button.go +++ b/widget/material/button.go @@ -79,8 +79,8 @@ func (b Button) Layout(gtx *layout.Context, button *widget.Button) { col := b.Color bgcol := b.Background if !button.Active() { - col.A = 0xaa - bgcol.A = 0xaa + col = rgb(0x888888) + bgcol = rgb(0xcccccc) } st := layout.Stack{} lbl := st.Rigid(gtx, func() {