From c994b3459b4b2ae0981a514d656199e0f193f2e0 Mon Sep 17 00:00:00 2001 From: LNischala Date: Wed, 23 Oct 2024 21:29:44 +0530 Subject: [PATCH 1/4] Fixed issue #1476 --- Theme.js | 8 ++++++-- index.html | 6 +++--- index.js | 14 ++++++++++++++ login/script.js | 3 +++ newLogin.html | 4 ++-- 5 files changed, 28 insertions(+), 7 deletions(-) diff --git a/Theme.js b/Theme.js index 1332ee21..17179670 100644 --- a/Theme.js +++ b/Theme.js @@ -20,13 +20,17 @@ function applyTheme(theme) { if (theme === "dark") { document.body.classList.add("dark-theme"); document.body.classList.remove("light-theme"); - themeLabel.style.background = "var(--primary-color)"; + // themeLabel.style.background = "var(--primary-color)"; + themeToggle.title = 'Switch to Light mode'; themeToggle.checked = true; + } else { document.body.classList.add("light-theme"); document.body.classList.remove("dark-theme"); - themeLabel.style.background = "#fff"; + // themeLabel.style.background = "fff"; + themeToggle.setAttribute('title','Switch to Dark mode'); themeToggle.checked = false; + } } diff --git a/index.html b/index.html index ff3f735a..993afbac 100644 --- a/index.html +++ b/index.html @@ -99,8 +99,8 @@ .toggle-container { position: relative; right: 2.5rem; - } + .toggle { width: 130%; @@ -851,7 +851,7 @@

+ Developers