diff --git a/CHANGELOG.md b/CHANGELOG.md index 643690f..477f681 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Added: Fixed: - Custom search input not being focussed after clicking +- When changing songs, the color shifts to blue for a second (#179) Improved: - Add `embedWidgetGenerator` modals to custom modal styles. (Things like the [spicetify-marketplace](https://github.com/CharlieS1103/spicetify-marketplace) options) diff --git a/src/js/main.js b/src/js/main.js index f8efa11..c576731 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -821,8 +821,8 @@ Dribbblish.on("ready", () => { $("html").css("--image-brightness", getImageLightness(img) / 255); - let color = "#509bf5"; if (img.complete) { + let color = "#1ed760"; const colorSelectionAlgorithm = Dribbblish.config.get("colorSelectionAlgorithm"); const colorSelectionMode = Dribbblish.config.get("colorSelectionMode"); let palette = {}; @@ -853,9 +853,9 @@ Dribbblish.on("ready", () => { const wantedLuminance = $("html").css("--is_light") == "1" ? Dribbblish.config.get("lightModeLuminance") : Dribbblish.config.get("darkModeLuminance"); color = palette[getClosestToNum(Object.keys(palette), wantedLuminance)].hex(); } - } - updateColors(false, color); + updateColors(false, color); + } } var coverListener;