fix color assertion crash when showing pop up queue on Windows

This commit is contained in:
Drew Weymouth
2024-08-19 08:49:40 -07:00
parent 6075b5c82e
commit 389c94e7e1
+5 -1
View File
@@ -152,7 +152,11 @@ func (m *Controller) ShowPopUpPlayQueue() {
container.NewThemeOverride(m.popUpQueue, myTheme.WithColorTransformOverride(
theme.ColorNameOverlayBackground,
func(c color.Color) color.Color {
c_ := c.(color.NRGBA)
if nrgba, ok := c.(color.NRGBA); ok {
nrgba.A = 245
return nrgba
}
c_ := c.(color.RGBA)
c_.A = 245
return c_
},