now playing header now shows context menu

fixed now playing image gradient
This commit is contained in:
austinried
2021-08-16 11:57:36 +09:00
parent ad25972774
commit b5392b6731
9 changed files with 77 additions and 40 deletions

View File

@@ -18,7 +18,6 @@ const ImageGradientBackground: React.FC<{
useEffect(() => {
async function getColors() {
console.log(`imagePath: ${imagePath}`)
if (imagePath === undefined) {
return
}
@@ -27,7 +26,6 @@ const ImageGradientBackground: React.FC<{
let res: AndroidImageColors
if (cachedResult) {
console.log(`cachedResult: ${JSON.stringify(cachedResult)}`)
res = cachedResult as AndroidImageColors
} else {
const path = `file://${imagePath}`
@@ -35,7 +33,6 @@ const ImageGradientBackground: React.FC<{
cache: true,
key: imagePath,
})) as AndroidImageColors
console.log(`res: ${JSON.stringify(res)}`)
}
if (res.muted && res.muted !== '#000000') {