Fix dimming Select background color when pressed
This commit is contained in:
parent
8fcca949ff
commit
eba7ce7e2f
1 changed files with 2 additions and 1 deletions
|
@ -169,7 +169,8 @@ func (s *Select) _setMenuVisible(visible bool) {
|
|||
if !visible {
|
||||
s.background = Style.ButtonBgColor
|
||||
} else {
|
||||
s.background = color.RGBA{uint8(float64(Style.ButtonBgColor.R) * 0.95), uint8(float64(Style.ButtonBgColor.G) * 0.95), uint8(float64(Style.ButtonBgColor.B) * 0.95), 255}
|
||||
const dim = 0.9
|
||||
s.background = color.RGBA{uint8(float64(Style.ButtonBgColor.R) * dim), uint8(float64(Style.ButtonBgColor.G) * dim), uint8(float64(Style.ButtonBgColor.B) * dim), 255}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue