From 84673ed08ac2617f9dbb757a93e3435907a0dbfb Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 3 Jan 2025 19:06:56 +0300 Subject: [PATCH] UI Cosmetics --- .../designer/dashboard/DesignDashboard.vue | 37 ++++++++++--------- .../designer/editor/DesignEditorFooter.vue | 2 +- .../designer/editor/DesignTokenField.vue | 6 +-- .../component/DesignComponentSection.vue | 2 +- .../editor/custom/DesignCustomTokens.vue | 4 +- .../editor/primitive/DesignBorderRadius.vue | 2 +- .../editor/semantic/DesignFormField.vue | 8 ++-- .../editor/semantic/DesignGeneral.vue | 6 +-- .../designer/editor/semantic/DesignList.vue | 6 +-- .../editor/semantic/DesignNavigation.vue | 8 ++-- .../editor/semantic/DesignOverlay.vue | 8 ++-- .../semantic/colorscheme/DesignCSCommon.vue | 8 ++-- .../colorscheme/DesignCSFormField.vue | 4 +- .../semantic/colorscheme/DesignCSList.vue | 6 +-- .../colorscheme/DesignCSNavigation.vue | 8 ++-- .../semantic/colorscheme/DesignCSOverlay.vue | 6 +-- .../editor/settings/DesignSettings.vue | 14 +++---- 17 files changed, 69 insertions(+), 66 deletions(-) diff --git a/apps/showcase/components/layout/designer/dashboard/DesignDashboard.vue b/apps/showcase/components/layout/designer/dashboard/DesignDashboard.vue index 8907bf2e4..660f1f657 100644 --- a/apps/showcase/components/layout/designer/dashboard/DesignDashboard.vue +++ b/apps/showcase/components/layout/designer/dashboard/DesignDashboard.vue @@ -11,14 +11,19 @@
My Themes - {{ $appState.designer.themes?.length }} / {{ $appState.designer.themeLimit }} +
+ {{ $appState.designer.themes.length }} / {{ $appState.designer.themeLimit }} +
+
+
+
Continue editing your existing themes or build a new one. -
+
@@ -270,8 +271,10 @@ export default { }, computed: { themeLimitReached() { - if (this.$appState.designer.themeLimit > 0 && this.$appState.designer.themes?.length) return this.$appState.designer.themeLimit === this.$appState.designer.themes.length; - else return false; + return this.$appState.designer.themeLimit ? this.$appState.designer.themeLimit === this.$appState.designer.themes.length : false; + }, + themeUsageRatio() { + return this.$appState.designer.themeLimit ? 100 * (this.$appState.designer.themes.length / this.$appState.designer.themeLimit) : 0; } } }; diff --git a/apps/showcase/components/layout/designer/editor/DesignEditorFooter.vue b/apps/showcase/components/layout/designer/editor/DesignEditorFooter.vue index de1c800a5..7500b04b9 100644 --- a/apps/showcase/components/layout/designer/editor/DesignEditorFooter.vue +++ b/apps/showcase/components/layout/designer/editor/DesignEditorFooter.vue @@ -1,5 +1,5 @@