FIX: #25 reduce number of colors extracted from album art

This commit is contained in:
Julien Maille 2021-07-23 20:15:33 +02:00
parent 77f281bd11
commit 28d977631f

View file

@ -248,7 +248,7 @@ async function songchange() {
Spicetify.Player.addEventListener("songchange", songchange)
function pickCoverColor(img) {
var swatches = new Vibrant(img, 12).swatches()
var swatches = new Vibrant(img, 5).swatches()
cols = isLight(mainColorBg) ? ["Vibrant", "DarkVibrant", "Muted", "LightVibrant"]
: ["Vibrant", "LightVibrant", "Muted", "DarkVibrant"]
mainColor = "#509bf5"