From 879c24dd5031fa9f90057821af87add2bd407ade Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 21 May 2024 18:16:05 +0300 Subject: [PATCH] Logo cosmetics --- .../styles/layout/variables/main/_dark.scss | 1 + .../styles/layout/variables/main/_light.scss | 1 + layouts/AppConfigurator.vue | 4 +++ layouts/AppTopBar.vue | 34 +++++++++---------- 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/assets/styles/layout/variables/main/_dark.scss b/assets/styles/layout/variables/main/_dark.scss index a1d983258..e2ee71f2c 100644 --- a/assets/styles/layout/variables/main/_dark.scss +++ b/assets/styles/layout/variables/main/_dark.scss @@ -24,6 +24,7 @@ --selection-text-color: var(--p-surface-0); --code-button-text-color: var(--p-surface-300); --docsearch-mask-background: var(--p-mask-background); + --logo-color: var(--text-secondary-color); } /* PrimeFlex Compat */ diff --git a/assets/styles/layout/variables/main/_light.scss b/assets/styles/layout/variables/main/_light.scss index df89717ce..4cfffd828 100644 --- a/assets/styles/layout/variables/main/_light.scss +++ b/assets/styles/layout/variables/main/_light.scss @@ -24,6 +24,7 @@ --selection-text-color: var(--p-surface-950); --code-button-text-color: var(--p-surface-300); --docsearch-mask-background: var(--p-mask-background); + --logo-color: var(--text-secondary-color); } /* Compat */ diff --git a/layouts/AppConfigurator.vue b/layouts/AppConfigurator.vue index 00dc0cd1f..a83052504 100755 --- a/layouts/AppConfigurator.vue +++ b/layouts/AppConfigurator.vue @@ -120,6 +120,8 @@ export default { const color = this.primaryColors.find((c) => c.name === this.selectedPrimaryColor); if (color.name === 'noir') { + document.documentElement.style.setProperty('--logo-color', 'var(--text-secondary-color)'); + return { semantic: { primary: color.palette, @@ -156,6 +158,8 @@ export default { } }; } else { + document.documentElement.style.setProperty('--logo-color', 'var(--primary-color)'); + if (this.$appState.preset === 'Nora') { return { semantic: { diff --git a/layouts/AppTopBar.vue b/layouts/AppTopBar.vue index ac9e4fc5f..50f4f7351 100755 --- a/layouts/AppTopBar.vue +++ b/layouts/AppTopBar.vue @@ -8,53 +8,53 @@ fill-rule="evenodd" clip-rule="evenodd" d="M128.062 32C128.438 32 128.656 31.8125 128.75 31.4375L134.031 7.6875C134.125 7.25 133.938 7 133.469 7H130.5C130.125 7 129.906 7.1875 129.812 7.5625L126.5 24.3125L123.219 7.5625C123.125 7.1875 122.906 7 122.531 7H119.562C119.094 7 118.906 7.25 119 7.6875L124.25 31.4375C124.344 31.8125 124.562 32 124.938 32H128.062ZM144.562 32C147.5 32 149.062 30.4375 149.062 27.5V7.625C149.062 7.28125 148.781 7 148.438 7H145.562C145.219 7 144.938 7.28125 144.938 7.625V26.625C144.938 27.4688 144.5 27.875 143.688 27.875H142.062C141.25 27.875 140.812 27.4688 140.812 26.625V7.625C140.812 7.28125 140.531 7 140.188 7H137.188C136.844 7 136.562 7.28125 136.562 7.625V27.5C136.562 30.4375 138.125 32 141.062 32H144.562ZM164.656 31.5C164.656 31.8125 164.531 32 164.156 32H152.656C152.375 32 152.188 31.8125 152.188 31.5V7.5C152.188 7.1875 152.375 7 152.656 7H164.156C164.531 7 164.656 7.1875 164.656 7.5V10.625C164.656 10.9375 164.531 11.1562 164.156 11.1562H156.344V17.4062H162.312C162.625 17.4062 162.812 17.5938 162.812 17.9375V21.0312C162.812 21.375 162.625 21.5625 162.312 21.5625H156.344V27.875H164.156C164.531 27.875 164.656 28.0312 164.656 28.375V31.5Z" - fill="var(--primary-color)" + fill="var(--logo-color)" /> - - + + - - + + - - - - - - + + + + + +