From: Chris Duncan Date: Mon, 28 Oct 2024 22:39:24 +0000 (-0700) Subject: Start building theme switching. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=b3874ca255acb9021698019ad2657b99c4f75e37;p=nemo-wallet.git Start building theme switching. --- 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 + // } + // } - +