mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35: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
|
||||
if !button.Active() {
|
||||
bgcol.A = 0xaa
|
||||
bgcol = rgb(0xcccccc)
|
||||
}
|
||||
bg := st.Expand(gtx, func() {
|
||||
size := float32(gtx.Constraints.Width.Min)
|
||||
|
||||
Reference in New Issue
Block a user