From 79e7cff04e50ef320e3be498d0d003e1ba5f2b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 23 Apr 2024 14:20:10 +0200 Subject: [PATCH] Rename themes to standard names --- frontend/renderer/plugins/vuetify.ts | 13 ++++++------- frontend/src/components/menu/TopMenu.vue | 5 ++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/frontend/renderer/plugins/vuetify.ts b/frontend/renderer/plugins/vuetify.ts index 18439f908..cc4d0f0cb 100644 --- a/frontend/renderer/plugins/vuetify.ts +++ b/frontend/renderer/plugins/vuetify.ts @@ -8,7 +8,7 @@ import { createVueI18nAdapter } from 'vuetify/locale/adapters/vue-i18n' import tokens from '#assets/sass/tokens.module.scss' -const ocelotStandardLightTheme: ThemeDefinition = { +const lightTheme: ThemeDefinition = { dark: false, colors: { background: tokens.backgroundColorBase, @@ -25,10 +25,10 @@ const ocelotStandardLightTheme: ThemeDefinition = { }, } -const ocelotStandardDarkTheme: ThemeDefinition = { +const darkTheme: ThemeDefinition = { dark: true, colors: { - ...ocelotStandardLightTheme.colors, + ...lightTheme.colors, background: tokens.backgroundColorInverse, surface: tokens.backgroundColorInverseSoft, }, @@ -45,11 +45,10 @@ export default (i18n: I18n, NonNullable, stri }, ssr: true, theme: { - defaultTheme: 'ocelotStandardLightTheme', - // defaultTheme: 'ocelotStandardDarkTheme', + defaultTheme: 'light', themes: { - ocelotStandardLightTheme, - ocelotStandardDarkTheme, + light: lightTheme, + dark: darkTheme, }, }, }) diff --git a/frontend/src/components/menu/TopMenu.vue b/frontend/src/components/menu/TopMenu.vue index 63dca3d42..ed79c0967 100644 --- a/frontend/src/components/menu/TopMenu.vue +++ b/frontend/src/components/menu/TopMenu.vue @@ -1,3 +1,4 @@ +