diff --git a/frontend/src/assets/icons/fa/regular/star.svg b/frontend/src/assets/icons/fa/regular/star.svg new file mode 100644 index 0000000..2b82988 --- /dev/null +++ b/frontend/src/assets/icons/fa/regular/star.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/components/now-playing-view/now-playing-view.ts b/frontend/src/components/now-playing-view/now-playing-view.ts index cfdb99b..f90dc64 100644 --- a/frontend/src/components/now-playing-view/now-playing-view.ts +++ b/frontend/src/components/now-playing-view/now-playing-view.ts @@ -307,7 +307,7 @@ export class NowPlayingView extends LitElement { : `Add ${track.title} to ${this.favCtrl.playlistName}`} @click=${this.toggleFavorite} > - + diff --git a/frontend/src/components/now-playing/now-playing.ts b/frontend/src/components/now-playing/now-playing.ts index 48d0524..4405695 100644 --- a/frontend/src/components/now-playing/now-playing.ts +++ b/frontend/src/components/now-playing/now-playing.ts @@ -527,7 +527,7 @@ export class NowPlaying extends LitElement { )} > diff --git a/frontend/src/components/playlist-view/playlist-view.ts b/frontend/src/components/playlist-view/playlist-view.ts index 0f69572..4e7aa62 100644 --- a/frontend/src/components/playlist-view/playlist-view.ts +++ b/frontend/src/components/playlist-view/playlist-view.ts @@ -1756,7 +1756,7 @@ export class PlaylistView extends ViewLifecycleMixin(LitElement) { ${entry.summary.ID === this.favCtrl.playlistId ? html`` : entry.summary.IsSmart ? html`` call sites. + * + * The Font Awesome family is part of the name — `regular/heart` is + * the outline, a bare `heart` is the solid one (`src/icons`). + */ + iconFor(favorited: boolean): string { + const shape = this.iconStyle === 'star' ? 'star' : 'heart'; + + return favorited ? shape : `regular/${shape}`; } // ===============================================================