Skip to content

Commit

Permalink
2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Mar 26, 2023
1 parent ac5f302 commit ef79742
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.0.5

- (New) Added dark theme support for Dice Stats module.
- (Maintenance) Support MLD roundmarkers from the new splinter module Monk's Combat Details.

# 2.0.4

- (Maintenance) Fix some issues affecting dark theme PC sheets introduced by recent system update.
Expand Down
4 changes: 3 additions & 1 deletion modules/message-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ function getActionGlyph(actionCost) {
// Chat cards
Hooks.on("renderChatMessage", (chatMessage, html, messageData) => {
const isNarratorToolsMessage = chatMessage.flags["narrator-tools"];
const isRoundMarker = chatMessage.flags["monks-little-details"]?.roundmarker;
const isMLDRoundMarker = chatMessage.flags["monks-little-details"]?.roundmarker;
const isMCDRoundMarker = chatMessage.flags["monks-combat-details"]?.roundmarker;
const isRoundMarker = isMLDRoundMarker || isMCDRoundMarker;
if (isNarratorToolsMessage || isRoundMarker) {
return;
}
Expand Down
2 changes: 2 additions & 0 deletions modules/premium-module-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Hooks.on("renderJournalTextPageSheet", (app, html, data) => {
Hooks.on("renderApplication", (app, html, data) => {
let html0 = html[0];
if (!html0.classList.contains("window-app")) return;
// TODO: This also triggers for SceneConfigPF2e
if (isPremiumApplication(app, html, data, app.constructor.name)) return;
const theme = game.settings.get("pf2e-dorako-ui", "theme.application-theme");
if (theme === "no-theme") {
Expand All @@ -70,6 +71,7 @@ Hooks.on("renderApplication", (app, html, data) => {
const journal = app.document;
if (!journal) return;
const flags = journal?.flags;
// TODO: This also triggers for SceneConfigPF2e
if (flags.hasOwnProperty("pf2e-abomination-vaults") || flags.hasOwnProperty("pf2e-beginner-box")) {
console.debug(`${MODULE_NAME} | render${app.constructor.name} | AV or BB => add .dorako-ui despite .premium`);
html[0].classList.add("dorako-ui");
Expand Down
2 changes: 1 addition & 1 deletion sass/module/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
@import "cautious-gamemasters-pack", "combat-carousel", "custom-hotbar", "damage-log", "dfce", "dice-tray", "dorako-ui",
"enhancen-terrain-layer", "filepicker-plus", "koboldworks-turn-announcer", "macros", "monarch", "monks", "polyglot",
"scene-preview", "speaking-as", "target-damage", "token-action-hud", "workbench", "party-overview", "pf2e-dailies",
"dalvyn-journal", "swade", "chat-reactions", "card-hand-mini-toolbar", "module-management-plus";
"dalvyn-journal", "swade", "chat-reactions", "card-hand-mini-toolbar", "module-management-plus", "misc";
7 changes: 7 additions & 0 deletions sass/module/_misc.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* ----------------------------------------- */
/* Dice Stats */
/* ----------------------------------------- */

.dorako-ui.dark-theme .chart-dice-stats {
background: #f5deb391;
}
7 changes: 7 additions & 0 deletions styles/module-support.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion styles/module-support.css.map

Large diffs are not rendered by default.

0 comments on commit ef79742

Please sign in to comment.