From c84a19eb1657729089390579daa7f6ec5e60c949 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Mon, 3 Jan 2022 19:10:38 -0800 Subject: [PATCH] Update index.js --- src/renderer/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index c664104f..341338f4 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -2431,10 +2431,12 @@ const app = new Vue({ console.log(palette) 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%)` - }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%)` + }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 { clearInterval(bginterval);