Fix #737: don't assume color.NRGBA in peak meter widget
This commit is contained in:
@@ -171,7 +171,7 @@ func (l *peakMeterRenderer) Refresh() {
|
||||
foreground := theme.ForegroundColor()
|
||||
background := theme.BackgroundColor()
|
||||
errC := theme.ErrorColor()
|
||||
c := theme.PrimaryColor().(color.NRGBA)
|
||||
c := color.NRGBAModel.Convert(theme.PrimaryColor()).(color.NRGBA)
|
||||
c.A = 128
|
||||
l.lLabel.Color = foreground
|
||||
l.rLabel.Color = foreground
|
||||
|
||||
Reference in New Issue
Block a user