Globally define theme colours

This commit is contained in:
2021-10-12 21:25:43 +02:00
parent b4c278b970
commit 58e3984ffc
4 changed files with 26 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ function drawGraph(element, label, dataType) {
datasets: [
{
label: label,
backgroundColor: highlightColor,
backgroundColor: "#" + window.style.highlightColor,
borderWidth: 0,
lineTension: 0,
fill: true,

View File

@@ -19,9 +19,16 @@ Skyscraper.prototype.open = function () {
}
if (skyscraperType === "a-ads") {
let adsColours = "&background_color=" + window.style.layer2Color +
"&text_color=" + window.style.textColor +
"&title_color=" + window.style.highlightColor +
"&title_hover_color=" + window.style.highlightColor +
"&link_color=" + window.style.highlightColor +
"&link_hover_color=" + window.style.highlightColor
this.divAdSpace.innerHTML = `<iframe
data-aa="1811738"
src="//ad.a-ads.com/1811738?size=160x600"
src="//ad.a-ads.com/1811738?size=160x600${adsColours}"
style="width:160px; height:600px; border:0px; padding:0; overflow:hidden; background-color: transparent;" >
</iframe>`
} else {