Code Format

pull/5110/head
GitHub Actions Bot 2024-01-17 19:58:02 +00:00
parent 60193987ef
commit b73f973749
1 changed files with 5 additions and 10 deletions

View File

@ -521,16 +521,11 @@ export default {
let root = document.documentElement; let root = document.documentElement;
if (event.value === 'current') { if (event.value === 'current') {
if (this.$appState.darkTheme) if (this.$appState.darkTheme) root.style.setProperty('--p-focus-ring-color', 'var(--surface-500)');
root.style.setProperty('--p-focus-ring-color', 'var(--surface-500)'); else root.style.setProperty('--p-focus-ring-color', 'var(--surface-400)');
else } else if (event.value === 'primary') {
root.style.setProperty('--p-focus-ring-color', 'var(--surface-400)'); if (this.$appState.darkTheme) root.style.setProperty('--p-focus-ring-color', 'var(--primary-500)');
} else root.style.setProperty('--p-focus-ring-color', 'var(--primary-500)');
else if (event.value === 'primary') {
if (this.$appState.darkTheme)
root.style.setProperty('--p-focus-ring-color', 'var(--primary-500)');
else
root.style.setProperty('--p-focus-ring-color', 'var(--primary-500)');
} }
} }
}, },