mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +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:
|
Fixed:
|
||||||
- Custom search input not being focussed after clicking
|
- Custom search input not being focussed after clicking
|
||||||
|
- When changing songs, the color shifts to blue for a second (#179)
|
||||||
|
|
||||||
Improved:
|
Improved:
|
||||||
- Add `embedWidgetGenerator` modals to custom modal styles. (Things like the [spicetify-marketplace](https://github.com/CharlieS1103/spicetify-marketplace) options)
|
- 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);
|
$("html").css("--image-brightness", getImageLightness(img) / 255);
|
||||||
|
|
||||||
let color = "#509bf5";
|
|
||||||
if (img.complete) {
|
if (img.complete) {
|
||||||
|
let color = "#1ed760";
|
||||||
const colorSelectionAlgorithm = Dribbblish.config.get("colorSelectionAlgorithm");
|
const colorSelectionAlgorithm = Dribbblish.config.get("colorSelectionAlgorithm");
|
||||||
const colorSelectionMode = Dribbblish.config.get("colorSelectionMode");
|
const colorSelectionMode = Dribbblish.config.get("colorSelectionMode");
|
||||||
let palette = {};
|
let palette = {};
|
||||||
|
|
@ -853,10 +853,10 @@ Dribbblish.on("ready", () => {
|
||||||
const wantedLuminance = $("html").css("--is_light") == "1" ? Dribbblish.config.get("lightModeLuminance") : Dribbblish.config.get("darkModeLuminance");
|
const wantedLuminance = $("html").css("--is_light") == "1" ? Dribbblish.config.get("lightModeLuminance") : Dribbblish.config.get("darkModeLuminance");
|
||||||
color = palette[getClosestToNum(Object.keys(palette), wantedLuminance)].hex();
|
color = palette[getClosestToNum(Object.keys(palette), wantedLuminance)].hex();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
updateColors(false, color);
|
updateColors(false, color);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var coverListener;
|
var coverListener;
|
||||||
function registerCoverListener() {
|
function registerCoverListener() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue