Fixed toolbar colors for vuetify 2

This commit is contained in:
Stefan Zermatten
2021-03-28 14:29:56 +02:00
parent 60ae1ef604
commit 838e2ed35f
9 changed files with 51 additions and 33 deletions

30
app/imports/ui/vuetify.js Normal file
View File

@@ -0,0 +1,30 @@
import Vuetify from 'vuetify/lib';
import SVG_ICONS from '/imports/constants/SVG_ICONS.js';
import SvgIconByName from '/imports/ui/icons/SvgIconByName.vue';
import themes from '/imports/ui/themes.js';
let icons = {};
for (const name in SVG_ICONS) {
let icon = SVG_ICONS[name];
icons[icon.name] = {
component: SvgIconByName,
props: {
name: name,
}
}
}
let vuetify = new Vuetify({
theme: {
themes,
options: { variations: false },
//options: { customProperties: true },
},
icons: {
iconfont: 'md',
values: icons,
}
});
export default vuetify;