Set colors into config so they can be used for more dynamic styles.
This commit is contained in:
parent
935c0e09c6
commit
ec5d8b9833
2 changed files with 22 additions and 11 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue