From cab22d14c7b55b5ad15519071efa24dc25d97daa Mon Sep 17 00:00:00 2001 From: Julien Maille Date: Sat, 5 Jun 2021 15:50:02 +0200 Subject: [PATCH] IMP: better color choice for some covers --- dribbblish-dynamic.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dribbblish-dynamic.js b/dribbblish-dynamic.js index 8abc69c..c58d36b 100644 --- a/dribbblish-dynamic.js +++ b/dribbblish-dynamic.js @@ -1,4 +1,4 @@ -let current = '1.1' +let current = '1.2' /* css is injected so this works with untouched user.css from Dribbblish */ /* dark theme */ @@ -34,6 +34,13 @@ document.styleSheets[0].insertRule(` background-color: rgba(var(--spice-rgb-subtext), 0.3) !important; }`) +/* unreadable top buttons */ +document.styleSheets[0].insertRule(` + .main-topBar-historyButtons svg { + color: var(--spice-text) !important; + fill: var(--spice-text) !important; + }`) + /* big cover opacity on hover */ document.styleSheets[0].insertRule(` .main-coverSlotExpanded-container:hover .cover-art, @@ -228,8 +235,8 @@ Spicetify.Player.addEventListener("songchange", songchange) function pickCoverColor(img) { var swatches = new Vibrant(img, 12).swatches() - cols = isLight(mainColorBg) ? ["Vibrant", "DarkVibrant", "LightVibrant", "Muted"] - : ["Vibrant", "LightVibrant", "DarkVibrant", "Muted"] + cols = isLight(mainColorBg) ? ["Vibrant", "DarkVibrant", "Muted", "LightVibrant"] + : ["Vibrant", "LightVibrant", "Muted", "DarkVibrant"] mainColor = "#509bf5" for (var col in cols) if (swatches[cols[col]]) {