mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-19 04:08:53 +00:00
fix color shifting to blue for a second (#179)
This commit is contained in:
parent
13e1f64054
commit
33134709ed
2 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue