mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
use new favorite color for icons
This commit is contained in:
@@ -84,7 +84,7 @@ export const RemoteContainer = () => {
|
|||||||
disabled={!id}
|
disabled={!id}
|
||||||
icon="favorite"
|
icon="favorite"
|
||||||
iconProps={{
|
iconProps={{
|
||||||
fill: song?.userFavorite ? 'primary' : 'default',
|
fill: song?.userFavorite ? 'favorite' : 'default',
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (!id) return;
|
if (!id) return;
|
||||||
|
|||||||
@@ -143,10 +143,6 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: scale(0.9);
|
transform: scale(0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
|
||||||
stroke: rgb(255 255 255);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-data {
|
.user-data {
|
||||||
|
|||||||
@@ -128,10 +128,10 @@ export const ItemCardControls = ({
|
|||||||
icon="favorite"
|
icon="favorite"
|
||||||
iconProps={{
|
iconProps={{
|
||||||
color: (item as { userFavorite: boolean }).userFavorite
|
color: (item as { userFavorite: boolean }).userFavorite
|
||||||
? 'primary'
|
? 'favorite'
|
||||||
: 'default',
|
: 'default',
|
||||||
fill: (item as { userFavorite: boolean }).userFavorite
|
fill: (item as { userFavorite: boolean }).userFavorite
|
||||||
? 'primary'
|
? 'favorite'
|
||||||
: undefined,
|
: undefined,
|
||||||
}}
|
}}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ export const ItemDetail = ({ data, itemType, onClick, withControls }: ItemDetail
|
|||||||
<ActionIcon
|
<ActionIcon
|
||||||
icon="favorite"
|
icon="favorite"
|
||||||
iconProps={{
|
iconProps={{
|
||||||
fill: data?.userFavorite ? 'primary' : 'default',
|
fill: data?.userFavorite ? 'favorite' : 'default',
|
||||||
}}
|
}}
|
||||||
size="xs"
|
size="xs"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ export const FavoriteColumn = (props: ItemTableListInnerColumn) => {
|
|||||||
className={row ? undefined : 'hover-only'}
|
className={row ? undefined : 'hover-only'}
|
||||||
icon="favorite"
|
icon="favorite"
|
||||||
iconProps={{
|
iconProps={{
|
||||||
color: row ? 'primary' : 'muted',
|
color: row ? 'favorite' : 'muted',
|
||||||
fill: row ? 'primary' : undefined,
|
fill: row ? 'favorite' : undefined,
|
||||||
size: 'md',
|
size: 'md',
|
||||||
}}
|
}}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ const DummyAlbumDetailRoute = () => {
|
|||||||
<ActionIcon
|
<ActionIcon
|
||||||
icon="favorite"
|
icon="favorite"
|
||||||
iconProps={{
|
iconProps={{
|
||||||
fill: detailQuery?.data?.userFavorite ? 'primary' : undefined,
|
fill: detailQuery?.data?.userFavorite ? 'favorite' : undefined,
|
||||||
}}
|
}}
|
||||||
loading={
|
loading={
|
||||||
createFavoriteMutation.isPending ||
|
createFavoriteMutation.isPending ||
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ export const AlbumArtistDetailContent = () => {
|
|||||||
<ActionIcon
|
<ActionIcon
|
||||||
icon="favorite"
|
icon="favorite"
|
||||||
iconProps={{
|
iconProps={{
|
||||||
fill: detailQuery?.data?.userFavorite ? 'primary' : undefined,
|
fill: detailQuery?.data?.userFavorite ? 'favorite' : undefined,
|
||||||
}}
|
}}
|
||||||
onClick={handleFavorite}
|
onClick={handleFavorite}
|
||||||
size="lg"
|
size="lg"
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export const MobileFullscreenPlayerMetadata = memo(
|
|||||||
<ActionIcon
|
<ActionIcon
|
||||||
icon="favorite"
|
icon="favorite"
|
||||||
iconProps={{
|
iconProps={{
|
||||||
fill: isFavorite ? 'primary' : undefined,
|
fill: isFavorite ? 'favorite' : undefined,
|
||||||
size: 'md',
|
size: 'md',
|
||||||
}}
|
}}
|
||||||
onClick={onToggleFavorite}
|
onClick={onToggleFavorite}
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ export const RightControls = () => {
|
|||||||
<ActionIcon
|
<ActionIcon
|
||||||
icon="favorite"
|
icon="favorite"
|
||||||
iconProps={{
|
iconProps={{
|
||||||
fill: currentSong?.userFavorite ? 'primary' : undefined,
|
fill: currentSong?.userFavorite ? 'favorite' : undefined,
|
||||||
size: 'lg',
|
size: 'lg',
|
||||||
}}
|
}}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user