From b73f9737493b644ac367fb438eef0652e7b3dfd3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Wed, 17 Jan 2024 19:58:02 +0000 Subject: [PATCH] Code Format --- layouts/AppConfigurator.vue | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/layouts/AppConfigurator.vue b/layouts/AppConfigurator.vue index fdcb43276..ddedfadc5 100755 --- a/layouts/AppConfigurator.vue +++ b/layouts/AppConfigurator.vue @@ -521,16 +521,11 @@ export default { let root = document.documentElement; if (event.value === 'current') { - if (this.$appState.darkTheme) - root.style.setProperty('--p-focus-ring-color', 'var(--surface-500)'); - else - root.style.setProperty('--p-focus-ring-color', 'var(--surface-400)'); - } - 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)'); + if (this.$appState.darkTheme) root.style.setProperty('--p-focus-ring-color', 'var(--surface-500)'); + else root.style.setProperty('--p-focus-ring-color', 'var(--surface-400)'); + } 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)'); } } },