Move custom theming from settings to style-switcher, remove usage of custom .css files, use styles.json instead.
This commit is contained in:
parent
e13c8c3fd2
commit
21b31cf599
9 changed files with 220 additions and 166 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue