Browse Source

Set default artist gradient bg to neutral color

master
jeffvli 3 years ago
committed by Jeff
parent
commit
b55b3a959e
  1. 6
      src/components/library/ArtistView.tsx

6
src/components/library/ArtistView.tsx

@ -185,7 +185,7 @@ const ArtistView = ({ ...rest }: any) => {
(data?.image.match('placeholder') && (data?.image.match('placeholder') &&
artistInfo?.largeImageUrl?.match('2a96cbd8b46e442fc41c2b86b821562f')) artistInfo?.largeImageUrl?.match('2a96cbd8b46e442fc41c2b86b821562f'))
) { ) {
setImageAverageColor({ color: 'rgba(0, 57, 90, .4)', loaded: true }); setImageAverageColor({ color: 'rgba(50, 50, 50, .4)', loaded: true });
} else { } else {
fac fac
.getColorAsync(imgUrl, { .getColorAsync(imgUrl, {
@ -231,7 +231,9 @@ const ArtistView = ({ ...rest }: any) => {
return ( return (
<> <>
<GradientBackground $expanded={misc.expandSidebar} $color={imageAverageColor.color} /> {!rest.isModal && (
<GradientBackground $expanded={misc.expandSidebar} $color={imageAverageColor.color} />
)}
<GenericPage <GenericPage
contentZIndex={1} contentZIndex={1}
hideDivider hideDivider

Loading…
Cancel
Save