mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-18 06:54:15 +00:00
Add RGB components to dominant color CSS variables
This commit is contained in:
parent
552f0b5998
commit
1b3cb9b49b
@ -32,12 +32,14 @@ export default (trackManifest) => {
|
||||
}
|
||||
}, [trackManifest])
|
||||
|
||||
const dominantColor = {
|
||||
"--dominant-color": getDominantColorStr(coverAnalysis),
|
||||
}
|
||||
|
||||
return {
|
||||
coverAnalysis,
|
||||
dominantColor,
|
||||
dominantColor: getDominantColorStr(coverAnalysis),
|
||||
cssVars: {
|
||||
"--dominant-color": getDominantColorStr(coverAnalysis),
|
||||
"--dominant-color-r": coverAnalysis?.value?.[0],
|
||||
"--dominant-color-g": coverAnalysis?.value?.[1],
|
||||
"--dominant-color-b": coverAnalysis?.value?.[2],
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user