mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user