diff --git a/dashboard/src/components/shared/AstrBotConfig.vue b/dashboard/src/components/shared/AstrBotConfig.vue index 5b339c700..960fe3f38 100644 --- a/dashboard/src/components/shared/AstrBotConfig.vue +++ b/dashboard/src/components/shared/AstrBotConfig.vue @@ -340,12 +340,12 @@ export default { .config-title { font-weight: 600; font-size: 1rem; - color: var(--v-primary-darken1); + color: var(--v-theme-primaryText); } .config-hint { font-size: 0.75rem; - color: rgba(0, 0, 0, 0.6); + color: var(--v-theme-secondaryText); margin-top: 2px; } @@ -400,12 +400,12 @@ export default { .property-name { font-size: 0.875rem; font-weight: 600; - color: rgba(0, 0, 0, 0.87); + color: var(--v-theme-primaryText); } .property-hint { font-size: 0.75rem; - color: rgba(0, 0, 0, 0.6); + color: var(--v-theme-secondaryText); margin-top: 2px; } diff --git a/dashboard/src/components/shared/ExtensionCard.vue b/dashboard/src/components/shared/ExtensionCard.vue index 73da2f4b5..b9d4d8c6c 100644 --- a/dashboard/src/components/shared/ExtensionCard.vue +++ b/dashboard/src/components/shared/ExtensionCard.vue @@ -1,5 +1,6 @@ diff --git a/dashboard/src/config.ts b/dashboard/src/config.ts index 2bb5c5fd1..9f70123a7 100644 --- a/dashboard/src/config.ts +++ b/dashboard/src/config.ts @@ -3,14 +3,25 @@ export type ConfigProps = { Customizer_drawer: boolean; mini_sidebar: boolean; fontTheme: string; + uiTheme: string; inputBg: boolean; }; +function checkUITheme() { + const theme = localStorage.getItem("uiTheme"); + console.log('memorized theme: ', theme); + if (!theme || !(['PurpleTheme', 'PurpleThemeDark'].includes(theme))) { + localStorage.setItem("uiTheme", "PurpleTheme"); + return 'PurpleTheme'; + } else return theme; +} + const config: ConfigProps = { Sidebar_drawer: true, Customizer_drawer: false, mini_sidebar: false, fontTheme: 'Roboto', + uiTheme: checkUITheme(), inputBg: false }; diff --git a/dashboard/src/layouts/full/FullLayout.vue b/dashboard/src/layouts/full/FullLayout.vue index 013a1f2e0..0380b350e 100644 --- a/dashboard/src/layouts/full/FullLayout.vue +++ b/dashboard/src/layouts/full/FullLayout.vue @@ -9,7 +9,7 @@ const customizer = useCustomizerStore();