mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
improve library header loading
This commit is contained in:
parent
b8ceb174b3
commit
b7fb7c7f94
9 changed files with 59 additions and 61 deletions
|
|
@ -132,7 +132,7 @@ export const FullScreenPlayerImage = () => {
|
|||
const { queue } = usePlayerData();
|
||||
const { useImageAspectRatio } = useFullScreenPlayerStore();
|
||||
const currentSong = queue.current;
|
||||
const { color: background } = useFastAverageColor({
|
||||
const { background } = useFastAverageColor({
|
||||
algorithm: 'dominant',
|
||||
src: queue.current?.imageUrl,
|
||||
srcLoaded: true,
|
||||
|
|
|
|||
|
|
@ -472,7 +472,7 @@ export const FullScreenPlayer = () => {
|
|||
}, [location, setStore]);
|
||||
|
||||
const currentSong = useCurrentSong();
|
||||
const { color: background } = useFastAverageColor({
|
||||
const { background } = useFastAverageColor({
|
||||
algorithm: 'dominant',
|
||||
src: currentSong?.imageUrl,
|
||||
srcLoaded: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue