Browse Source

Move color scheme to nuxt.config.js

pull/341/head
Hironsan 5 years ago
parent
commit
ef7293c149
2 changed files with 21 additions and 21 deletions
  1. 20
      frontend/components/organisms/TheTopMenu.vue
  2. 22
      frontend/nuxt.config.js

20
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)
},

22
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'
}
}
}
},
/*

Loading…
Cancel
Save