From 0efd2b41f17c7825c3d1337cc7167cd86bb911c6 Mon Sep 17 00:00:00 2001 From: nate smith Date: Sun, 3 Nov 2024 15:48:11 -0600 Subject: [PATCH] fix theming toggle bug --- templates/index.tmpl | 1 - web/assets/main.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/index.tmpl b/templates/index.tmpl index 67716c4..5c69d4c 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -35,7 +35,6 @@ h1 { background-color: white; } - a { color: black; } diff --git a/web/assets/main.js b/web/assets/main.js index e089073..e092efd 100644 --- a/web/assets/main.js +++ b/web/assets/main.js @@ -357,7 +357,7 @@ class ThemeToggler extends HTMLAnchorElement { $("#about").style.backgroundColor = "black"; $("#about").style.color = "white"; $("h1").style.backgroundColor = "black"; - $(".controls form").style.backgroundColor = "black"; + $(".controls label").style.backgroundColor = "black"; $(".corner").style.backgroundColor = "black"; $(".corner .bordered").style.border = "1px solid white"; $$("a").forEach((e) => { e.style.color = "white" }); @@ -369,7 +369,7 @@ class ThemeToggler extends HTMLAnchorElement { $("#about").style.backgroundColor = "white"; $("#about").style.color = "black"; $(".main").style.backgroundColor = "white"; - $(".controls form").style.backgroundColor = "white"; + $(".controls label").style.backgroundColor = "white"; $("h1").style.backgroundColor = "white"; $(".corner").style.backgroundColor = "white"; $(".corner .bordered").style.border = "1px solid black";