Skip to content

Commit

Permalink
3.5.16
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Sep 8, 2024
1 parent 193f190 commit c802087
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 3.5.16

- (Refinement) Removed some logspam.
- (Refinement) Excluded one more PF2e Graphics application from theming.

# 3.5.15

- (Refinement) Excluded the applications windows from PF2e Graphics from theming.
Expand Down
2 changes: 1 addition & 1 deletion esmodules/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export const unlimitedScopeApplications = ["PlaylistDirectory"];
/* ----------------------------------------- */
/* Excluded */
/* ----------------------------------------- */
export const excludedApplications = ["ActorAnimationsApp","AnimationHistoryApp", "UserAnimationsApp", "WorldAnimationsApp","JSONEditorApp", "VCEChatLog", "AutorecMenuApp","GmScreenApplicationDrawer","MixerApp","EnhancedJournal","PartyOverviewApp","KingdomBuilder","ChatLogPF2e","ItemMenuApp","LevelsUI", "SpecialEffectsManagement", "ParticleEffectsManagement", "FilterEffectsManagementConfig"]; //
export const excludedApplications = ["ItemAnimationsApp","ActorAnimationsApp","AnimationHistoryApp", "UserAnimationsApp", "WorldAnimationsApp","JSONEditorApp", "VCEChatLog", "AutorecMenuApp","GmScreenApplicationDrawer","MixerApp","EnhancedJournal","PartyOverviewApp","KingdomBuilder","ChatLogPF2e","ItemMenuApp","LevelsUI", "SpecialEffectsManagement", "ParticleEffectsManagement", "FilterEffectsManagementConfig"]; //
9 changes: 5 additions & 4 deletions esmodules/ui-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ for (const appName of [...systemSheets, ...moduleWindowApps]) {
Hooks.on("render" + appName, (app, html, data) => {
const theme = game.settings.get("pf2e-dorako-ui", "theme.window-app-theme");
if (theme === "no-theme") return;
const uiTheme = lookupThemeAndSchemeForKey(theme);
if (uiTheme === null) return;
const { dorakoUiTheme, colorScheme } = uiTheme;
if (
game.modules.get("sf2e-playtest-deluxe-adventure-pack")?.active &&
app.constructor.name === "CharacterSheetPF2e"
Expand All @@ -145,12 +148,10 @@ for (const appName of [...systemSheets, ...moduleWindowApps]) {
);
return;
}
const uiTheme = lookupThemeAndSchemeForKey(theme);
if (uiTheme === null) return;
const { dorakoUiTheme, colorScheme } = uiTheme;

const excludeString = game.settings.get("pf2e-dorako-ui", "customization.excluded-applications");
const excludeList = excludeString.split(/[\s,]+/);
if (excludeList.includes(app.constructor.name)) {
if (excludeList.includes(app.constructor.name) || excludedApplications.includes(app.constructor.name)) {
console.debug(
`${MODULE_NAME} | render${app.constructor.name} | is included in excluded applications string ${excludeString} => do not set dorako-ui-theme to ${dorakoUiTheme}`
);
Expand Down

0 comments on commit c802087

Please sign in to comment.