From 370d484b7063b4454264a11fad792e30bd22ac7a Mon Sep 17 00:00:00 2001 From: Dorako Date: Fri, 24 Feb 2023 00:25:06 +0100 Subject: [PATCH] 1.12.6 --- CHANGELOG.md | 4 ++++ modules/base-theme-hooks.js | 4 ++-- modules/consts.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f73b8d..fd036c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.12.6 + +- (Refinement) Treat pf2e-bb like pf2e-av, which should exclude its journals from Dalvyn's CRB-styling, but keep the Dorako UI journal frame. + # 1.12.5.1 - (SWADE) Finally for reals exluded SWPF sheets once and for all. Thanks, Pinnacle Entertainment Group! diff --git a/modules/base-theme-hooks.js b/modules/base-theme-hooks.js index c0f2451..b8cd29f 100644 --- a/modules/base-theme-hooks.js +++ b/modules/base-theme-hooks.js @@ -90,8 +90,8 @@ Hooks.on("renderApplication", (app, html, data) => { console.debug( `${MODULE_NAME} | render${app.constructor.name} | matches premiumModuleSelector => do not add .dorako-ui` ); - if (html0.matches(".pf2e-av")) { - console.debug(`${MODULE_NAME} | render${app.constructor.name} | matches pf2e-av => add .dorako-ui anyway`); + if (html0.matches(".pf2e-av") || html0.matches(".pf2e-bb")) { + console.debug(`${MODULE_NAME} | render${app.constructor.name} | matches pf2e-av/bb => add .dorako-ui anyway`); html0.classList.add("dorako-ui"); } return; diff --git a/modules/consts.js b/modules/consts.js index 2550fd9..ed2d9fe 100644 --- a/modules/consts.js +++ b/modules/consts.js @@ -31,7 +31,7 @@ export const baseThemeApplications = [...baseThemeCoreFoundryApplications,...bas export const darkThemeCompatibleApplications = [...darkThemeCompatibleCoreFoundryApplications, ...darkThemeCompatibleModuleApplications, ...darkThemeCompatiblePf2eApplications, ...dorakoUiApplications] // prettier-ignore -export const premiumModuleSelector = ".swpf-sheet, .swpf-wrapper, .pf2e-av, .gatewalkers-wrapper, .gatewalkers, .outlaws-wrapper, .outlaws, .bloodlords-wrapper, .bloodlords, .kingmaker-wrapper, .kingmaker"; // +export const premiumModuleSelector = ".swpf-sheet, .swpf-wrapper, .pf2e-av, .pf2e-bb, .gatewalkers-wrapper, .gatewalkers, .outlaws-wrapper, .outlaws, .bloodlords-wrapper, .bloodlords, .kingmaker-wrapper, .kingmaker"; // // SWPFSheet // SWPFJournalSheet