From a8d1380b482448d62f23910cefb20b90fedf0098 Mon Sep 17 00:00:00 2001 From: Michael Manganiello Date: Sun, 2 Jul 2023 22:13:28 -0300 Subject: [PATCH] Change playing icon color for current track Make the Play icon easier to spot within the playing queue, by using the primary color for the current theme. Fixes #184 --- ui/widgets/tracklist.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/widgets/tracklist.go b/ui/widgets/tracklist.go index 65bebda..c1e89bc 100644 --- a/ui/widgets/tracklist.go +++ b/ui/widgets/tracklist.go @@ -123,7 +123,11 @@ func NewTracklist(tracks []*mediaprovider.Track) *Tracklist { t.OnColumnVisibilityMenuShown(pop) } } - playingIcon := container.NewCenter(container.NewHBox(util.NewHSpace(2), widget.NewIcon(theme.MediaPlayIcon()))) + + playIcon := theme.NewThemedResource(theme.MediaPlayIcon()) + playIcon.ColorName = theme.ColorNamePrimary + playingIcon := container.NewCenter(container.NewHBox(util.NewHSpace(2), widget.NewIcon(playIcon))) + t.list = widget.NewList( t.lenTracks, func() fyne.CanvasObject {