diff --git a/frontend/components/organisms/TheTopMenu.vue b/frontend/components/organisms/TheTopMenu.vue index b2614330..b6cd7208 100644 --- a/frontend/components/organisms/TheTopMenu.vue +++ b/frontend/components/organisms/TheTopMenu.vue @@ -51,26 +51,6 @@ export default { watch: { isDark() { - this.$vuetify.theme.themes = { - dark: { - primary: '#21CFF3', - accent: '#FF4081', - secondary: '#ffe18d', - success: '#4CAF50', - info: '#2196F3', - warning: '#FB8C00', - error: '#FF5252' - }, - light: { - primary: '#1976D2', - accent: '#e91e63', - secondary: '#30b1dc', - success: '#4CAF50', - info: '#2196F3', - warning: '#FB8C00', - error: '#FF5252' - } - } this.$vuetify.theme.dark = this.isDark localStorage.setItem('dark', this.isDark) }, diff --git a/frontend/nuxt.config.js b/frontend/nuxt.config.js index f7949c19..0933d258 100644 --- a/frontend/nuxt.config.js +++ b/frontend/nuxt.config.js @@ -72,7 +72,27 @@ export default { info: colors.teal.lighten1, warning: colors.amber.base, error: colors.deepOrange.accent4, - success: colors.green.accent3 + success: colors.green.accent3, + themes: { + dark: { + primary: '#21CFF3', + accent: '#FF4081', + secondary: '#ffe18d', + success: '#4CAF50', + info: '#2196F3', + warning: '#FB8C00', + error: '#FF5252' + }, + light: { + primary: '#1976D2', + accent: '#e91e63', + secondary: '#30b1dc', + success: '#4CAF50', + info: '#2196F3', + warning: '#FB8C00', + error: '#FF5252' + } + } } }, /*