Fix #737: don't assume color.NRGBA in peak meter widget

This commit is contained in:
Drew Weymouth
2025-10-18 06:58:04 -07:00
parent 887d3bb2c7
commit 9e9aa3fc67
+1 -1
View File
@@ -171,7 +171,7 @@ func (l *peakMeterRenderer) Refresh() {
foreground := theme.ForegroundColor() foreground := theme.ForegroundColor()
background := theme.BackgroundColor() background := theme.BackgroundColor()
errC := theme.ErrorColor() errC := theme.ErrorColor()
c := theme.PrimaryColor().(color.NRGBA) c := color.NRGBAModel.Convert(theme.PrimaryColor()).(color.NRGBA)
c.A = 128 c.A = 128
l.lLabel.Color = foreground l.lLabel.Color = foreground
l.rLabel.Color = foreground l.rLabel.Color = foreground