From 1667e1a5bb47b2866ca80d548cf443a007cc0bcb Mon Sep 17 00:00:00 2001 From: ProChopa <112766478+ProChopa@users.noreply.github.com> Date: Sat, 20 Jul 2024 04:16:09 +0400 Subject: [PATCH] Update ProSpotify.js --- ProSpotify.js | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/ProSpotify.js b/ProSpotify.js index 39f7282..bf35bf5 100644 --- a/ProSpotify.js +++ b/ProSpotify.js @@ -749,9 +749,7 @@ function updateColors(textColHex) { if (textColHex == undefined) return registerCoverListener(); let isLightBg = isLight(textColorBg); - if (isLightBg) - textColHex = lightenDarkenColor(textColHex, -15); // vibrant color is always too bright for white bg mode - else textColHex = setLightness(textColHex, 0.45); + if (isLightBg) textColHex = lightenDarkenColor(textColHex, -15); // vibrant color is always too bright for white bg mode let darkColHex = lightenDarkenColor(textColHex, isLightBg ? 12 : -20); let darkerColHex = lightenDarkenColor(textColHex, isLightBg ? 30 : -40); @@ -759,6 +757,7 @@ function updateColors(textColHex) { setRootColor("text", textColHex); setRootColor("button", darkerColHex); setRootColor("button-active", darkColHex); + setRootColor("selected-row", darkerColHex); setRootColor("tab-active", softHighlightHex); setRootColor("button-disabled", softHighlightHex); let softerHighlightHex = setLightness(textColHex, isLightBg ? 0.9 : 0.1); @@ -900,33 +899,6 @@ function registerCoverListener() { } registerCoverListener(); -(function Startup() { - if (!Spicetify.showNotification) { - setTimeout(Startup, 300); - return; - } - // Check latest release - fetch("https://api.github.com/repos/JulienMaille/spicetify-dynamic-theme/releases/latest") - .then((response) => { - return response.json(); - }) - .then((data) => { - if (data.tag_name > current) { - document.querySelector("#main-topBar-moon-button").classList.remove("main-topBar-buddyFeed"); - document.querySelector("#main-topBar-moon-button").classList.add("main-actionButtons-button", "main-noConnection-isNotice"); - let updateLink = document.createElement("a"); - updateLink.setAttribute("title", `Changes: ${data.name}`); - updateLink.setAttribute("href", "https://github.com/JulienMaille/spicetify-dynamic-theme/releases/latest"); - updateLink.innerHTML = `v${data.tag_name} available`; - document.querySelector("#main-topBar-moon-button").append(updateLink); - } - }) - .catch((err) => { - // Do something for an error here - }); - Spicetify.showNotification("Applied system " + (systemDark ? "dark" : "light") + " theme."); -})(); - document.documentElement.style.setProperty("--warning_message", " "); (function e$$0(x, z, l) {