Lightmode fixes

This commit is contained in:
WBHarry 2025-07-13 21:19:08 +02:00
parent 4262bf7a97
commit a1856866fa
3 changed files with 20 additions and 8 deletions

View file

@ -1,6 +1,12 @@
.theme-light .daggerheart.dialog.dh-style.views.resource-dice {
.resource-items input {
background-image: url('../assets/parchments/dh-parchment-light.png');
.resource-items .resource-item {
input {
background-image: url('../assets/parchments/dh-parchment-light.png');
}
img {
filter: brightness(0) saturate(100%);
}
}
}

View file

@ -1,6 +1,17 @@
@import '../utils/colors.less';
@import '../utils/fonts.less';
.theme-light .application.daggerheart.dh-style {
.inventory-item,
.card-item {
.item-resource .item-dice-resource {
img {
filter: brightness(0) saturate(100%);
}
}
}
}
.application.daggerheart.dh-style {
.inventory-item {
display: grid;
@ -213,7 +224,7 @@
label {
position: absolute;
color: light-dark(white, black);
filter: drop-shadow(0 0 1px @golden);
filter: drop-shadow(0 0 1px light-dark(@dark-blue, @golden));
z-index: 2;
font-size: 18px;
cursor: pointer;

View file

@ -4,16 +4,11 @@
{{#with (ifThen (lookup ../diceStates this) (lookup ../diceStates this) this) as | state |}}
<div class="resource-item" data-dice="{{#if ../../this}}{{../this}}{{else}}{{state}}{{/if}}">
<input type="number" data-dtype="Number" name={{concat "diceStates." (ifThen ../../this ../this state) ".value" }} value="{{state.value}}" />
{{!-- <label>{{ifThen state.value state.value '?'}}</label> --}}
<img src="{{concat "systems/daggerheart/assets/icons/dice/hope/d" (ifThen ../../resource.dieFaces ../../resource.dieFaces ../resource.dieFaces) ".svg"}}" />
</div>
{{/with}}
{{/times}}
</div>
{{!-- <div class="reroll-confirmation">
<div>{{localize 'DAGGERHEART.APPLICATIONS.ResourceDice.rerollRecoveryInfo' name=name recovery=recovery }}</div>
<div>{{localize 'DAGGERHEART.APPLICATIONS.ResourceDice.rerollConfirmation' name=name }}</div>
</div> --}}
<footer>
<button data-action="save">{{localize 'Save'}}</button>
<button data-action="rerollDice">{{localize "DAGGERHEART.APPLICATIONS.ResourceDice.rerollDice"}}</button>