fix color shifting to blue for a second (#179)

This commit is contained in:
Send_Nukez 2022-02-27 21:06:05 +01:00
parent 13e1f64054
commit 33134709ed
2 changed files with 4 additions and 3 deletions

View file

@ -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)

View file

@ -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;