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')
})
}
}
- 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) {
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 */