mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-08 17:20:47 +00:00
FIX: #25 reduce number of colors extracted from album art
This commit is contained in:
parent
77f281bd11
commit
28d977631f
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ async function songchange() {
|
||||||
Spicetify.Player.addEventListener("songchange", songchange)
|
Spicetify.Player.addEventListener("songchange", songchange)
|
||||||
|
|
||||||
function pickCoverColor(img) {
|
function pickCoverColor(img) {
|
||||||
var swatches = new Vibrant(img, 12).swatches()
|
var swatches = new Vibrant(img, 5).swatches()
|
||||||
cols = isLight(mainColorBg) ? ["Vibrant", "DarkVibrant", "Muted", "LightVibrant"]
|
cols = isLight(mainColorBg) ? ["Vibrant", "DarkVibrant", "Muted", "LightVibrant"]
|
||||||
: ["Vibrant", "LightVibrant", "Muted", "DarkVibrant"]
|
: ["Vibrant", "LightVibrant", "Muted", "DarkVibrant"]
|
||||||
mainColor = "#509bf5"
|
mainColor = "#509bf5"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue