use rounded image corners (TODO: allow disabling this)

This commit is contained in:
Drew Weymouth
2025-11-15 10:35:17 -08:00
parent 9f399a447c
commit c14342eff8
14 changed files with 30 additions and 12 deletions
+3 -1
View File
@@ -19,7 +19,8 @@ import (
type LargeNowPlayingCard struct {
CaptionedImage
DisableRating bool
DisableRating bool
ImageCornerRadius float32
isRadio bool
trackName *widget.RichText
@@ -163,5 +164,6 @@ func (n *LargeNowPlayingCard) Refresh() {
} else {
n.rating.Enable()
}
n.cover.CornerRadius = n.ImageCornerRadius
n.BaseWidget.Refresh()
}