mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
widget/material: don't use translucency for disabled icon buttons
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -127,7 +127,7 @@ func (b IconButton) Layout(gtx *layout.Context, button *widget.Button) {
|
|||||||
})
|
})
|
||||||
bgcol := b.Background
|
bgcol := b.Background
|
||||||
if !button.Active() {
|
if !button.Active() {
|
||||||
bgcol.A = 0xaa
|
bgcol = rgb(0xcccccc)
|
||||||
}
|
}
|
||||||
bg := st.Expand(gtx, func() {
|
bg := st.Expand(gtx, func() {
|
||||||
size := float32(gtx.Constraints.Width.Min)
|
size := float32(gtx.Constraints.Width.Min)
|
||||||
|
|||||||
Reference in New Issue
Block a user