Enable themes to force UI (compact or standard)
This commit is contained in:
parent
95fc0420bd
commit
8d3cd1c11b
1 changed files with 13 additions and 2 deletions
|
@ -1172,9 +1172,20 @@ const app = new Vue({
|
||||||
},
|
},
|
||||||
getAppClasses() {
|
getAppClasses() {
|
||||||
let classes = {}
|
let classes = {}
|
||||||
if (this.cfg.advanced.experiments.includes('compactui')) {
|
switch (this.getThemeDirective('forceUI') ?? "none") {
|
||||||
classes.compact = true
|
case "compact":
|
||||||
|
classes.compact = true;
|
||||||
|
break;
|
||||||
|
case "default":
|
||||||
|
classes.compact = false;
|
||||||
|
break;
|
||||||
|
case "none":
|
||||||
|
if (this.cfg.advanced.experiments.includes('compactui')) {
|
||||||
|
classes.compact = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.cfg.visual.window_background_style == "none") {
|
if (this.cfg.visual.window_background_style == "none") {
|
||||||
classes.simplebg = true
|
classes.simplebg = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue