fix: Dice So Nice import v14 compat, override Foundry text colors for readability
Release Creation / build (release) Failing after 1m28s

- hooks.mjs: replace static dice-so-nice import with dynamic import
  using game.modules.get('dice-so-nice').id (path removed in v14)
- hooks.mjs: fix permission condition (|| -> &&), jQuery -> vanilla JS
- less/base.less: override --color-text-* and --button-text-color
  for both .themed.theme-dark (AppV2) and body.theme-dark (legacy apps)
- target #settings-config buttons + labels + hints for dark grays
This commit is contained in:
2026-07-12 22:05:45 +02:00
parent dcc24b47ec
commit 90de66d668
44 changed files with 516 additions and 4305 deletions
+2 -2
View File
@@ -205,11 +205,11 @@
<select name="system.skill_categories.preferred" data-dtype="String">
<option value="">{{ localize 'NONE' }}</option>
{{#each system.skill_categories as |category key|}}
{{#unless key "eq" "preferred"}}
{{#ife key "preferred"}}{{else}}
<option value="{{key}}" {{#ife key ../system.skill_categories.preferred}}selected{{/ife}}>
{{localize category.label}}
</option>
{{/unless}}
{{/ife}}
{{/each}}
</select>
</div>
-1
View File
@@ -78,7 +78,6 @@
<ol id="combat-tracker" class="directory-list">
{{#each turns as |turn index|}}
{{log turn}}
<li class="combatant actor directory-item flexrow {{turn.css}}"
data-combatant-id="{{turn.id}}">
<img class="token-image" data-src="{{turn.img}}"
+3
View File
@@ -0,0 +1,3 @@
<div class="vermine2047 fight-result">
<p>{{localize "VERMINE.confrontation_result"}}</p>
</div>
+17
View File
@@ -0,0 +1,17 @@
<form id="dice-pool-form">
<p>{{localize "VERMINE.FightTool"}}</p>
<div class="form-group">
<label>{{localize "VERMINE.skill"}}</label>
<select name="skill">
<option value="">{{localize "VERMINE.none"}}</option>
</select>
</div>
<div class="form-group">
<label>{{localize "VERMINE.skill_score"}}</label>
<input id="skillScore" type="number" name="skill-score" value="5" />
</div>
<div class="form-group">
<label>{{localize "VERMINE.dice_pool"}}</label>
<input type="number" name="dice-pool" value="{{dicePool}}" />
</div>
</form>
+7
View File
@@ -0,0 +1,7 @@
<nav class="sheet-tabs tabs" data-group="sheet">
{{#each tabs}}
<a class="item {{cssClass}}" data-tab="{{id}}" data-group="{{group}}">
<i class="{{icon}}"></i> {{localize label}}
</a>
{{/each}}
</nav>
-1
View File
@@ -1,6 +1,5 @@
<div class="{{cssClass}}">
{{> "systems/vermine2047/templates/item/partials/header.hbs"}}
{{log this}}
<section class="sheet-body">
{{> "systems/vermine2047/templates/item/partials/traits.hbs"}}
+3 -5
View File
@@ -1,5 +1,4 @@
<div class="{{cssClass}}">
{{log this}}
{{> "systems/vermine2047/templates/item/partials/header.hbs"}}
@@ -14,12 +13,11 @@
{{#if system.needSkill.value}}
<select name="system.needSkill.skill" class="skill-select">
<option value="">aucune</option>
{{log config}}
{{#each @root.config.skillCategories as |skillCategory sckey|}}
{{#each @root.config.skillCategories as |skillCategory sckey|}}
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' sckey 'name' }}">
{{#each @root.config.model.Actor.character.skills as |skill key|}}
{{#each @root.config.skills as |skill key|}}
{{#ife skill.category sckey}}
<option value="{{sckey}}" {{#ife sckey @root.system.needSkill.skill}} selected {{/ife}}>{{ smarttlk 'SKILLS' key 'name' }}</option>
<option value="{{key}}" {{#ife key @root.system.needSkill.skill}} selected {{/ife}}>{{ smarttlk 'SKILLS' key 'name' }}</option>
{{/ife}}
{{/each}}
+11 -20
View File
@@ -1,5 +1,4 @@
<div class="{{cssClass}}">
{{log this}}
<header class="sheet-header">
<img
class="profile-img"
@@ -19,27 +18,19 @@
class="skill-select"
>
{{#each @root.config.skillCategories as |skillCategory sckey|}}
{{log skillCategory}}
{{log @root.config.model.Actor.character.skills}}
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' sckey 'name' }}">
{{#each @root.config.model.Actor.character.skills as |skill key|}}
{{log sckey}}
{{log skill}}
{{#ife skill.category sckey}}
<option
value="{{key}}"
{{#ife key @root.item.system.skill}}
selected
{{/ife}}
>{{ smarttlk 'SKILLS' key 'name' }}</option>
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' sckey 'name' }}">
{{#each @root.config.skills as |skill key|}}
{{#ife skill.category sckey}}
<option
value="{{key}}"
{{#ife key @root.item.system.skill}}
selected
{{/ife}}
{{/each}}
</optgroup>
>{{ smarttlk 'SKILLS' key 'name' }}</option>
{{/ife}}
{{/each}}
</optgroup>
{{/each}}
</select>
</div>