summaryrefslogtreecommitdiffstats
path: root/webapp/src/main.js
diff options
context:
space:
mode:
authorUdo Walter2020-01-19 22:18:15 +0100
committerUdo Walter2020-01-19 22:18:15 +0100
commit7c273a8bcab2da87acb3431448a53e91e360d5eb (patch)
treea83294c281ae3f33ee2a59dafe4d32b23e43fe71 /webapp/src/main.js
parent[configloader] remove port from dynamic menu (diff)
downloadbas-7c273a8bcab2da87acb3431448a53e91e360d5eb.tar.gz
bas-7c273a8bcab2da87acb3431448a53e91e360d5eb.tar.xz
bas-7c273a8bcab2da87acb3431448a53e91e360d5eb.zip
[webapp] upgrade/migration from vuetify 1.5 to 2.X
still TODO: switch from old grid system (v-layout/v-flex) to the new one (v-row/v-col)
Diffstat (limited to 'webapp/src/main.js')
-rw-r--r--webapp/src/main.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/webapp/src/main.js b/webapp/src/main.js
index 0ace2fc..93f1224 100644
--- a/webapp/src/main.js
+++ b/webapp/src/main.js
@@ -1,3 +1,4 @@
+import '@mdi/font/css/materialdesignicons.css'
import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
@@ -36,9 +37,19 @@ const i18n = new VueI18n({
messages: i18nMessages
})
-Vue.use(Vuetify, {
+Vue.use(Vuetify)
+
+const vuetify = new Vuetify({
theme: {
- primary: '#0095ff'
+ dark: store.state.settings.dark,
+ themes: {
+ light: {
+ primary: '#0095ff'
+ },
+ dark: {
+ primary: '#0095ff'
+ }
+ }
},
lang: {
t: (key, ...params) => i18n.t(key, params)
@@ -132,6 +143,7 @@ new Vue({
store,
router,
i18n,
+ vuetify,
computed: {
locale: () => store.state.settings.locale
},