mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
widget/material: better disabled color calculation
Use desaturation in combination with alpha multiplication. Signed-off-by: Egon Elbre <egonelbre@gmail.com>
This commit is contained in:
@@ -68,7 +68,7 @@ func (s SliderStyle) Layout(gtx layout.Context) layout.Dimensions {
|
||||
|
||||
color := s.Color
|
||||
if gtx.Queue == nil {
|
||||
color = f32color.MulAlpha(color, 150)
|
||||
color = f32color.Disabled(color)
|
||||
}
|
||||
|
||||
// Draw track before thumb.
|
||||
|
||||
Reference in New Issue
Block a user