Move custom theming from settings to style-switcher, remove usage of custom .css files, use styles.json instead.

This commit is contained in:
shpuld 2017-11-17 17:24:42 +02:00
parent e13c8c3fd2
commit 21b31cf599
9 changed files with 220 additions and 166 deletions

View file

@ -31,11 +31,10 @@ const config = {
dispatch('setPageTitle')
break
case 'theme':
const fullPath = `/static/css/${value}`
StyleSetter.setStyle(fullPath, null, commit)
StyleSetter.setPreset(value, commit)
break
case 'customTheme':
StyleSetter.setStyle(null, value, commit)
StyleSetter.setColors(value, commit)
}
}
}