Fix #25 : Change color of WP warning displays

This commit is contained in:
LeRatierBretonnien 2025-01-07 17:23:25 +01:00
parent d6a1b2c62a
commit c0d240c5d0
5 changed files with 18 additions and 3 deletions

View File

@ -112,6 +112,7 @@
--logo-standard: url("../assets/logos/reanimated-ce-logo.webp");
--color-success: darkgreen;
--color-failure: darkred;
--color-warning: darkorange;
--color-critical-success: lightgreen;
--color-critical-failure: lightcoral;
--img-icon-color-filter: brightness(0) saturate(100%) invert(52%) sepia(9%) saturate(2368%) hue-rotate(360deg) brightness(86%) contrast(84%);
@ -1568,6 +1569,12 @@ i.fvtt-cthulhu-eternal {
width: 60px;
text-align: center;
}
.red-warning {
color: var(--color-failure);
}
.orange-warning {
color: var(--color-warning);
}
.dialog-damage {
display: flex;
justify-content: center;

View File

@ -5,7 +5,7 @@ export default class CthulhuEternalProtagonistSheet extends CthulhuEternalActorS
static DEFAULT_OPTIONS = {
classes: ["protagonist"],
position: {
width: 848,
width: 860,
height: 620,
},
window: {

View File

@ -9,6 +9,7 @@
--logo-standard: url("../assets/logos/reanimated-ce-logo.webp");
--color-success: darkgreen;
--color-failure: darkred;
--color-warning: darkorange;
--color-critical-success: lightgreen;
--color-critical-failure: lightcoral;
--img-icon-color-filter: brightness(0) saturate(100%) invert(52%) sepia(9%) saturate(2368%) hue-rotate(360deg) brightness(86%) contrast(84%);

View File

@ -36,6 +36,13 @@
}
}
.red-warning {
color: var(--color-failure);
}
.orange-warning {
color: var(--color-warning);
}
.dialog-damage {
display: flex;

View File

@ -15,10 +15,10 @@
{{/if}}
{{#if isZeroWP}}
<div class="dialog-skill">Zero WP : Automatic failure (ie 0%)</div>
<div class="dialog-skill red-warning">Zero WP : Automatic failure (ie 0%)</div>
{{else}}
{{#if isLowWP}}
<div class="dialog-skill">Low WP : -20%</div>
<div class="dialog-skill orange-warning">Low WP : -20%</div>
{{/if}}
{{/if}}
</fieldSet>