diff options
author | Christian Hesse <mail@eworm.de> | 2023-05-23 11:47:06 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-05-25 10:38:57 +0200 |
commit | 5ae3cb336fa80d8d5fe141d59a85148f8c4823df (patch) | |
tree | 7e91e44c6ada6bc2a88ffb71fc22dead5e3f2f27 /contrib/logo-color.d | |
parent | c2e7567c13bba80190ad5c2dd7c6ad7b025619e3 (diff) |
add a logo color changer
Generate a colored logo for your notifications!
Diffstat (limited to 'contrib/logo-color.d')
-rw-r--r-- | contrib/logo-color.d/script.js | 5 | ||||
-rw-r--r-- | contrib/logo-color.d/style.css | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/contrib/logo-color.d/script.js b/contrib/logo-color.d/script.js new file mode 100644 index 0000000..ac89905 --- /dev/null +++ b/contrib/logo-color.d/script.js @@ -0,0 +1,5 @@ +function color() { + var svg = document.querySelector(".logo").getSVGDocument(); + svg.getElementById("dark-1").setAttribute("stop-color", document.getElementById("color1").value); + svg.getElementById("dark-2").setAttribute("stop-color", document.getElementById("color2").value); +} diff --git a/contrib/logo-color.d/style.css b/contrib/logo-color.d/style.css new file mode 100644 index 0000000..f0e3f49 --- /dev/null +++ b/contrib/logo-color.d/style.css @@ -0,0 +1,5 @@ +body { + font-family: fira-sans, sans; + font-size: 10pt; + background-color: transparent; +} |