update colors v1.5.0
diff --git a/dev.js b/dev.js
index 96ddb97..1845d76 100644
--- a/dev.js
+++ b/dev.js
@@ -421,7 +421,7 @@
}
dtps.onThemeChange = function() {
var next = window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue("--grad")
- if (dtps.fadedColors) next = "linear-gradient(to bottom right, " + window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue($("body").hasClass("dark") ? ($("body").hasClass("midnight") ? "--dark" : "--norm") : "--light") + ", " + jQuery("body").css("background-color") + ")"
+ if (dtps.fadedColors) next = "linear-gradient(to bottom right, " + window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue($("body").hasClass("midnight") ? "--dark" : "--light") + ", " + jQuery("body").css("background-color") + ")"
$(".background").css("background", next)
}
dtps.renderStream = function(stream, searchRes) {
@@ -928,14 +928,14 @@
$( ".class:not(.google)" ).click(function(event) {
$('body').removeClass('isolatedGoogleClass');
var prev = window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue("--grad")
- if (dtps.fadedColors) prev = "linear-gradient(to bottom right, " + window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue($("body").hasClass("dark") ? ($("body").hasClass("midnight") ? "--dark" : "--norm") : "--light") + ", " + jQuery("body").css("background-color") + ")"
+ if (dtps.fadedColors) prev = "linear-gradient(to bottom right, " + window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue($("body").hasClass("midnight") ? "--dark" : "--light") + ", " + jQuery("body").css("background-color") + ")"
$(".btn.google").hide();
$(".background").css("background", prev);
$(".background").addClass("trans");
clearTimeout(dtps.bgTimeout);
dtps.bgTimeout = setTimeout(function() {
var next = window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue("--grad")
- if (dtps.fadedColors) next = "linear-gradient(to bottom right, " + window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue($("body").hasClass("dark") ? ($("body").hasClass("midnight") ? "--dark" : "--norm") : "--light") + ", " + jQuery("body").css("background-color") + ")"
+ if (dtps.fadedColors) next = "linear-gradient(to bottom right, " + window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue($("body").hasClass("midnight") ? "--dark" : "--light") + ", " + jQuery("body").css("background-color") + ")"
$(".background").css("background", next)
$(".background").removeClass("trans");
}, 500);
@@ -1327,7 +1327,7 @@
});
var prev = window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue("--grad")
- if (dtps.fadedColors) prev = "linear-gradient(to bottom right, " + window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue($("body").hasClass("dark") ? ($("body").hasClass("midnight") ? "--dark" : "--norm") : "--light") + ", " + jQuery("body").css("background-color") + ")"
+ if (dtps.fadedColors) prev = "linear-gradient(to bottom right, " + window.getComputedStyle(document.getElementsByClassName("background")[0]).getPropertyValue($("body").hasClass("midnight") ? "--dark" : "--light") + ", " + jQuery("body").css("background-color") + ")"
$(".background").css("background", prev)
dtps.showClasses();
dtps.gapis();