Skip to content

Commit

Permalink
fix color assertion crash when showing pop up queue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Aug 19, 2024
1 parent 6075b5c commit 389c94e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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_
},
Expand Down

0 comments on commit 389c94e

Please sign in to comment.