…lines 1–16 unchanged (16 lines)
17// Shows the current album art, track name, artist name, and album name
18// for the currently playing track. Placed into the left side of the BottomPanel.
19type LargeNowPlayingCard struct {
20 CaptionedImage
21
22 DisableRating bool
23 ImageCornerRadius float32
24
25 isRadio bool
26 trackName *widget.RichText
27 artistName *MultiHyperlink
28 albumName *MultiHyperlink
29 rating *StarRating
…lines 30–160 unchanged (131 lines)
161func (n *LargeNowPlayingCard) Refresh() {
162 if n.DisableRating {
163 n.rating.Disable()
164 } else {
165 n.rating.Enable()
166 }
167 n.cover.CornerRadius = n.ImageCornerRadius
168 n.BaseWidget.Refresh()
169}
170