Fix chat log theme to inherit interface theme

This commit is contained in:
Carlos Fernandez 2026-01-15 17:55:23 -05:00
parent e590dde567
commit 86d084b6fb
2 changed files with 8 additions and 1 deletions

View file

@ -92,6 +92,13 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
super.close(options);
}
/** Ensure the chat theme inherits the interface theme */
_replaceHTML(result, content, options) {
const themedElement = result.log?.querySelector(".chat-log");
themedElement?.classList.remove("themed", "theme-light", "theme-dark");
super._replaceHTML(result, content, options);
}
async onRollSimple(event, message) {
const buttonType = event.target.dataset.type ?? 'damage',
total = message.rolls.reduce((a, c) => a + Roll.fromJSON(c).total, 0),

View file

@ -2,7 +2,7 @@
@import '../utils/fonts.less';
@import '../utils/mixin.less';
.theme-light {
#interface.theme-light {
.daggerheart.chat-sidebar .chat-log,
#chat-notifications .chat-log {
.chat-message {