widget/material: don't use transparency for disabled buttons

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-14 15:07:48 +02:00
parent 4475bf10bf
commit 0559393633
+2 -2
View File
@@ -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() {