Set colors into config so they can be used for more dynamic styles.

This commit is contained in:
Roger Braun 2017-02-22 21:14:55 +01:00
parent 935c0e09c6
commit ec5d8b9833
2 changed files with 22 additions and 11 deletions

View file

@ -2,7 +2,8 @@ import { set } from 'vue'
import StyleSetter from '../services/style_setter/style_setter.js'
const defaultState = {
name: 'Pleroma FE'
name: 'Pleroma FE',
colors: {}
}
const config = {
@ -24,7 +25,7 @@ const config = {
break
case 'theme':
const fullPath = `/static/css/${value}`
StyleSetter.setStyle(fullPath)
StyleSetter.setStyle(fullPath, commit)
}
}
}