From fe8af35fdd1d1723f85825cde46ce24e6bfd463d Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 23 Jan 2024 14:44:12 +0300 Subject: [PATCH] Add aura logo to configurator --- layouts/AppConfigurator.vue | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/layouts/AppConfigurator.vue b/layouts/AppConfigurator.vue index 407d1c5a3..9827a5041 100755 --- a/layouts/AppConfigurator.vue +++ b/layouts/AppConfigurator.vue @@ -29,7 +29,7 @@
Themes
- aura Light Teal + Aura Aura
@@ -142,8 +142,8 @@
- Focus Ring Color - + Primary Focus Ring +
@@ -363,11 +363,7 @@ export default { { label: 'Outlined', value: 'outlined' }, { label: 'Filled', value: 'filled' } ], - focusRingColor: 'current', - focusRingColors: [ - { label: 'Current', value: 'current' }, - { label: 'Primary', value: 'primary' } - ], + primaryFocusRing: true, compactMaterial: false }; }, @@ -454,15 +450,19 @@ export default { return this.$appState.theme === themeName; }, - onFocusRingColorChange(event) { + onFocusRingColorChange(value) { + this.primaryFocusRing = value; 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') { + console.log('x'); + + if (value) { 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 root.style.setProperty('--p-focus-ring-color', 'var(--primary-500)'); + } + else { + 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)'); } } },