mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46:12 +01:00
Fix theme for notifications area
This commit is contained in:
parent
86d084b6fb
commit
22e14aeba4
2 changed files with 15 additions and 11 deletions
|
|
@ -99,6 +99,12 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
|
||||||
super._replaceHTML(result, content, options);
|
super._replaceHTML(result, content, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Remove chat log theme from notifications area */
|
||||||
|
async _onFirstRender(result, content) {
|
||||||
|
await super._onFirstRender(result, content);
|
||||||
|
document.querySelector("#chat-notifications .chat-log")?.classList.remove("themed", "theme-light", "theme-dark")
|
||||||
|
}
|
||||||
|
|
||||||
async onRollSimple(event, message) {
|
async onRollSimple(event, message) {
|
||||||
const buttonType = event.target.dataset.type ?? 'damage',
|
const buttonType = event.target.dataset.type ?? 'damage',
|
||||||
total = message.rolls.reduce((a, c) => a + Roll.fromJSON(c).total, 0),
|
total = message.rolls.reduce((a, c) => a + Roll.fromJSON(c).total, 0),
|
||||||
|
|
|
||||||
|
|
@ -2,20 +2,18 @@
|
||||||
@import '../utils/fonts.less';
|
@import '../utils/fonts.less';
|
||||||
@import '../utils/mixin.less';
|
@import '../utils/mixin.less';
|
||||||
|
|
||||||
|
.daggerheart.chat-sidebar.theme-light,
|
||||||
#interface.theme-light {
|
#interface.theme-light {
|
||||||
.daggerheart.chat-sidebar .chat-log,
|
.chat-log .chat-message {
|
||||||
#chat-notifications .chat-log {
|
background-image: url('../assets/parchments/dh-parchment-light.png');
|
||||||
.chat-message {
|
|
||||||
background-image: url('../assets/parchments/dh-parchment-light.png');
|
|
||||||
|
|
||||||
.message-header .message-header-metadata .message-metadata,
|
.message-header .message-header-metadata .message-metadata,
|
||||||
.message-header .message-header-main .message-sub-header-container {
|
.message-header .message-header-main .message-sub-header-container {
|
||||||
color: @dark;
|
color: @dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-header .message-header-main .message-sub-header-container h4 {
|
.message-header .message-header-main .message-sub-header-container h4 {
|
||||||
color: @dark-blue;
|
color: @dark-blue;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue