forked from joejulian/gio
widget/material: don't use transparency for disabled buttons
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -79,8 +79,8 @@ func (b Button) Layout(gtx *layout.Context, button *widget.Button) {
|
|||||||
col := b.Color
|
col := b.Color
|
||||||
bgcol := b.Background
|
bgcol := b.Background
|
||||||
if !button.Active() {
|
if !button.Active() {
|
||||||
col.A = 0xaa
|
col = rgb(0x888888)
|
||||||
bgcol.A = 0xaa
|
bgcol = rgb(0xcccccc)
|
||||||
}
|
}
|
||||||
st := layout.Stack{}
|
st := layout.Stack{}
|
||||||
lbl := st.Rigid(gtx, func() {
|
lbl := st.Rigid(gtx, func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user