From 5ae3cb336fa80d8d5fe141d59a85148f8c4823df Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 23 May 2023 11:47:06 +0200 Subject: add a logo color changer Generate a colored logo for your notifications! --- contrib/logo-color.d/script.js | 5 +++++ contrib/logo-color.d/style.css | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 contrib/logo-color.d/script.js create mode 100644 contrib/logo-color.d/style.css (limited to 'contrib/logo-color.d') 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; +} -- cgit v1.2.3-54-g00ecf