Added default colours from theme.

This commit is contained in:
Devine Lu Linvega
2019-08-02 08:06:36 +09:00
parent f8e202f1b6
commit d2004ce7cd
3 changed files with 8 additions and 4 deletions

View File

@@ -42,6 +42,10 @@ function Theme (_default) {
this.load(_default)
}
this.get = function (key) {
return this.active[key]
}
function parse (any) {
if (any && any.background) { return any } else if (any && any.data) { return any.data } else if (any && isJson(any)) { return JSON.parse(any) } else if (any && isHtml(any)) { return extract(any) }
return null