issue 75: Unable to see icons in GM ToolBox and text in GM Monitor

This commit is contained in:
Litasa
2026-02-28 20:58:16 +00:00
parent 890223021a
commit f6ed462bce
6 changed files with 44 additions and 17 deletions

View File

@@ -166,6 +166,15 @@ export class GmMonitor extends HandlebarsApplicationMixin(ApplicationV2) {
}
}
);
// Apply global interface theme if it is set
if (!this.options.classes.includes("themed")) {
this.element.classList.remove("theme-light", "theme-dark");
const {colorScheme} = game.settings.get("core", "uiConfig");
if (colorScheme.interface) {
this.element.classList.add("themed", `theme-${colorScheme.interface}`);
}
}
}
/** @override ApplicationV2 */