From af65a36bc8f5b6ea0eeefccf1392cd523b8c76dd Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 30 Oct 2024 15:00:29 -0700 Subject: [PATCH] Tweak load order and input background. --- app/pages/nemo-wallet.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/pages/nemo-wallet.html b/app/pages/nemo-wallet.html index 63c4e0f..93b3cba 100644 --- a/app/pages/nemo-wallet.html +++ b/app/pages/nemo-wallet.html @@ -51,6 +51,9 @@ async function loadUi () { console.log('loading ui') + const themeCheckbox = document.getElementById('theme-checkbox') + themeCheckbox.addEventListener('change', selectTheme) + selectTheme() const forms = document.querySelectorAll('form') for (const form of forms) { const cancelButtons = form.querySelectorAll('button.cancel') @@ -60,9 +63,6 @@ }) } } - const themeCheckbox = document.getElementById('theme-checkbox') - themeCheckbox.addEventListener('change', selectTheme) - selectTheme() const clearStorageButton = document.getElementById('clear-storage-button') clearStorageButton.addEventListener('click', (event) => { if (event.detail === 1) { @@ -620,7 +620,7 @@ input[type='text'], select, select:focus { - background-color: var(--theme-secondary); + background-color: var(--theme-primary); border: 1px solid var(--theme-content); color: var(--theme-text); font-size: calc(16px + 0.1dvh); /* prevents input focus zoom on mobile */ -- 2.34.1