MCPcopy Create free account
hub / github.com/Muhammadsiddiq-code/Admin-dashboard / applyTheme

Function applyTheme

app.js:543–549  ·  view source on GitHub ↗
(theme)

Source from the content-addressed store, hash-verified

541}
542
543function applyTheme(theme) {
544 document.documentElement.setAttribute("data-theme", theme)
545 const themeIcon = document.querySelector("#themeToggle i")
546 if (themeIcon) {
547 themeIcon.className = theme === "light" ? "fas fa-moon" : "fas fa-sun"
548 }
549}
550
551function handleLanguageChange(e) {
552 currentLanguage = e.target.value

Callers 2

initializeAppFunction · 0.85
toggleThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected