added window style to settings

This commit is contained in:
booploops 2022-02-28 23:57:47 -08:00
parent c832e9e959
commit 8013d663e9
8 changed files with 256 additions and 65 deletions

View file

@ -959,12 +959,15 @@ const app = new Vue({
}
},
getThemeDirective(directive = "") {
if (typeof this.chrome.appliedTheme.info.directives != "object") {
return ""
let directives = {}
if (typeof this.chrome.appliedTheme.info.directives == "object") {
directives = this.chrome.appliedTheme.info.directives
}
if (this.chrome.appliedTheme.info.directives[directive]) {
if (directives[directive]) {
return this.chrome.appliedTheme.info.directives[directive].value
} else {
} else if(this.cfg.visual.directives[directive]) {
return this.cfg.visual.directives.windowLayout
}else{
return ""
}
},