replace tabs with its own PART; not in correct order yet

This commit is contained in:
jalensailin
2025-07-18 22:47:29 -04:00
parent d7672027af
commit ae41353658
4 changed files with 39 additions and 50 deletions
+18
View File
@@ -14,6 +14,14 @@ const DGSheetMixin = (Base) => {
/** @inheritdoc */
static TEMPLATE_PATH = /** @type {const} */ (`systems/${DG.ID}/templates`);
static get THEME() {
return game.settings.get(DG.ID, "characterSheetStyle");
}
get THEME() {
return this.constructor.THEME;
}
/** @inheritdoc */
async _prepareContext(options) {
const context = await super._prepareContext(options);
@@ -24,6 +32,16 @@ const DGSheetMixin = (Base) => {
return context;
}
/** @inheritdoc */
async _onFirstRender(context, options) {
await super._onFirstRender(context, options);
const html = this.element;
html
.querySelector(".window-content")
.classList.add(`${this.THEME}-style`);
}
/** @inheritdoc */
async _onRender(context, options) {