Merge pull request #180 from JulienMaille/fix-blue

fix color shifting to blue for a second (#179)
This commit is contained in:
Erik 2022-02-27 21:27:27 +01:00 committed by GitHub
commit ba5846bc41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;