Update index.js
This commit is contained in:
parent
de74127d33
commit
c84a19eb16
1 changed files with 4 additions and 2 deletions
|
@ -2431,10 +2431,12 @@ const app = new Vue({
|
||||||
console.log(palette)
|
console.log(palette)
|
||||||
if(palette.DarkMuted != null && palette.DarkVibrant != null){
|
if(palette.DarkMuted != null && palette.DarkVibrant != null){
|
||||||
document.querySelector("#app").style.backgroundImage = `linear-gradient(to bottom, ${self._rgbToRgb(palette.DarkMuted._rgb)} 0%, ${self._rgbToRgb(palette.DarkVibrant._rgb)} 100%)`
|
document.querySelector("#app").style.backgroundImage = `linear-gradient(to bottom, ${self._rgbToRgb(palette.DarkMuted._rgb)} 0%, ${self._rgbToRgb(palette.DarkVibrant._rgb)} 100%)`
|
||||||
}else{
|
}else if(palette.Muted != null && palette.LightMuted != null){
|
||||||
document.querySelector("#app").style.backgroundImage = `linear-gradient(to bottom, ${self._rgbToRgb(palette.Muted._rgb)} 0%, ${self._rgbToRgb(palette.LightMuted._rgb)} 100%)`
|
document.querySelector("#app").style.backgroundImage = `linear-gradient(to bottom, ${self._rgbToRgb(palette.Muted._rgb)} 0%, ${self._rgbToRgb(palette.LightMuted._rgb)} 100%)`
|
||||||
|
}else{
|
||||||
|
document.querySelector("#app").style.backgroundImage = `linear-gradient(to bottom, ${self._rgbToRgb(palette.Vibrant._rgb)} 0%, ${self._rgbToRgb(palette.DarkVibrant._rgb)} 100%)`
|
||||||
}
|
}
|
||||||
})
|
}).setQuantizer(Vibrant.Quantizer.WebWorker)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
clearInterval(bginterval);
|
clearInterval(bginterval);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue