fix: remove both curly brackets in variables to avoid confusion

This commit is contained in:
ThaUnknown 2024-04-13 23:20:29 +02:00
parent f54e5cb076
commit 963db909d8
2 changed files with 2 additions and 2 deletions

View file

@ -9,5 +9,5 @@ export const variables = writable(localStorage.getItem('theme') || '')
variables.subscribe(value => {
localStorage.setItem('theme', value)
style.textContent = `:root{${value.replaceAll('}', '')}}`
style.textContent = `:root{${value.replace(/{|}/g, '')}}`
})

View file

@ -34,7 +34,7 @@
<label for='disable-sidebar'>{settings.expandingSidebar ? 'On' : 'Off'}</label>
</div>
</SettingCard>
<SettingCard title='CSS Variables' description='Used for custom themes. Can change colors, sizes, spacing and more. Best way to discover variables is to use the built-in devtools via Ctrl+Shift+I or F12.'>
<SettingCard title='CSS Variables' description='Used for custom themes. Can change colors, sizes, spacing and more. Supports only variables. Best way to discover variables is to use the built-in devtools via Ctrl+Shift+I or F12.'>
<textarea class='form-control w-500 mw-full bg-dark' placeholder='--accent-color: #e5204c;' bind:value={$variables} />
</SettingCard>
<SettingCard title='Card Type' description='What type of cards to display in menus.'>