Skip to content

Commit

Permalink
Skill recalc, partial dark mode support
Browse files Browse the repository at this point in the history
Recalculate all skills when attributes change or when the sheet is opened. Added basic support for dark mode in roll templates.
  • Loading branch information
phaldenby72 committed Jul 28, 2024
1 parent ea86b3d commit 6b90504
Show file tree
Hide file tree
Showing 2 changed files with 272 additions and 156 deletions.
102 changes: 102 additions & 0 deletions Demon Gate/DemonGate.css
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,9 @@ tr.sheet-spell-spacer-row td {
padding: 8px 0;
}

.sheet-rolltemplate-text .sheet-template-subtitle,
.sheet-rolltemplate-class-ability-text .sheet-template-subtitle,
.sheet-rolltemplate-percentile .sheet-template-subtitle,
.sheet-rolltemplate-attack .sheet-template-subtitle,
.sheet-rolltemplate-damage .sheet-template-subtitle,
.sheet-rolltemplate-roll .sheet-template-subtitle,
Expand Down Expand Up @@ -981,3 +984,102 @@ tr.sheet-spell-spacer-row td {
padding: 10px;
text-align: center;
}

/* Dark mode support */
.sheet-rolltemplate-darkmode.sheet-rolltemplate-text .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-class-ability-text .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-percentile .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-attack .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-damage .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-roll .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-description .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-cast .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-effect .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-simple .sheet-template-box,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-two-part .sheet-template-box {
border: 2px solid #222222;
background-color: #555555;
}

.sheet-rolltemplate-darkmode.sheet-rolltemplate-text .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-class-ability-text .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-percentile .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-attack .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-damage .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-roll .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-description .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-cast .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-effect .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-simple .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-two-part .sheet-template-title,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-text .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-class-ability-text .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-percentile .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-attack .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-damage .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-roll .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-cast .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-effect .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-simple .sheet-template-subtitle,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-two-part .sheet-template-subtitle {
color: #FF8888;
background-color: #590902;
}

.sheet-rolltemplate-darkmode.sheet-rolltemplate-text .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-class-ability-text .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-percentile .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-attack .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-damage .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-roll .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-description .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-cast .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-effect .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-simple .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-two-part .inlinerollresult {
background-color: #353535;
border: 2px solid #222222;
}

.sheet-rolltemplate-darkmode.sheet-rolltemplate-text .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-class-ability-text .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-percentile .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-attack .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-damage .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-roll .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-description .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-cast .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-effect .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-simple .inlinerollresult,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-two-part .inlinerollresult {
background-color: #353535;
border: 2px solid #222222;
}

.sheet-rolltemplate-darkmode.sheet-rolltemplate-text .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-class-ability-text .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-percentile .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-attack .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-damage .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-roll .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-description .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-cast .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-effect .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-simple .inlinerollresult.fullfail,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-two-part .inlinerollresult.fullfail {
border-color: #970303;
}

.sheet-rolltemplate-darkmode.sheet-rolltemplate-text .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-class-ability-text .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-percentile .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-attack .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-damage .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-roll .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-description .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-cast .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-spell-effect .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-simple .inlinerollresult.fullcrit,
.sheet-rolltemplate-darkmode.sheet-rolltemplate-two-part .inlinerollresult.fullcrit {
border-color: #028502;
}
Loading

0 comments on commit 6b90504

Please sign in to comment.