From ef7293c149834940a954c9e6df85988b1bd4a0ad Mon Sep 17 00:00:00 2001 From: Hironsan Date: Sun, 27 Oct 2019 20:23:35 +0900 Subject: [PATCH] Move color scheme to nuxt.config.js --- frontend/components/organisms/TheTopMenu.vue | 20 ------------------ frontend/nuxt.config.js | 22 +++++++++++++++++++- 2 files changed, 21 insertions(+), 21 deletions(-) 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' + } + } } }, /*