From b3874ca255acb9021698019ad2657b99c4f75e37 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 28 Oct 2024 15:39:24 -0700 Subject: [PATCH] Start building theme switching. --- app/pages/nemo-wallet.html | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/app/pages/nemo-wallet.html b/app/pages/nemo-wallet.html index ab6a3f0..ac5b420 100644 --- a/app/pages/nemo-wallet.html +++ b/app/pages/nemo-wallet.html @@ -451,6 +451,29 @@ notify.ok(`Session storage cleared`) btn.removeAttribute('disabled') } + // function toggleTheme () { + // const body = document.querySelector('body') + // const theme = body.style.getPropertyValue('--theme') + // switch (theme) { + // case dark: { + // body.style = { + // "--theme": "light", + // "--theme-primary": "var(--color-light)", + // "--theme-secondary": "var(--color-blue)", + // "--theme-highlight": "var(--color-dark)", + // "--theme-text": "var(--color-black)" + // break + // } + // case light: { + // body.style = { + // "--theme": "light", + // "--theme-primary": "var(--color-light)", + // "--theme-secondary": "var(--color-blue)", + // "--theme-highlight": "var(--color-dark)", + // "--theme-text": "var(--color-black)" + // break + // } + // } - +
-- 2.34.1