feat: icônes SVG art-déco pour tous les types d'item + icônes par défaut

- aspect.svg : diamant à facettes avec coupe brillant et reflet
- equipment.svg : clé vintage ornée avec tête circulaire et dents géométriques
- preCreateItem hook : définit img par défaut par type d'item

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-31 00:53:30 +02:00
parent 2839a6a777
commit a316fb9c61
3 changed files with 92 additions and 1 deletions

39
assets/icons/aspect.svg Normal file
View File

@@ -0,0 +1,39 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<!-- Fond -->
<rect width="100" height="100" rx="10" fill="#1b3828"/>
<rect x="2.5" y="2.5" width="95" height="95" rx="8" fill="none" stroke="#c49a1a" stroke-width="1.5"/>
<!-- Grand diamant principal -->
<polygon points="50,8 84,50 50,92 16,50" fill="#0d1f14" stroke="#ddb84a" stroke-width="2"/>
<!-- Facette table (centre) -->
<polygon points="50,24 68,50 50,76 32,50" fill="#1b3828" stroke="#c49a1a" stroke-width="1.2"/>
<!-- Lignes de facettes — coupe brillant -->
<!-- Facettes supérieures gauche / droite -->
<line x1="50" y1="8" x2="32" y2="50" stroke="#c49a1a" stroke-width="1"/>
<line x1="50" y1="8" x2="68" y2="50" stroke="#c49a1a" stroke-width="1"/>
<!-- Facettes inférieures -->
<line x1="50" y1="92" x2="32" y2="50" stroke="#c49a1a" stroke-width="1"/>
<line x1="50" y1="92" x2="68" y2="50" stroke="#c49a1a" stroke-width="1"/>
<!-- Facettes latérales -->
<line x1="16" y1="50" x2="32" y2="50" stroke="#ddb84a" stroke-width="0.8"/>
<line x1="84" y1="50" x2="68" y2="50" stroke="#ddb84a" stroke-width="0.8"/>
<!-- Arêtes intermédiaires sup -->
<line x1="50" y1="8" x2="16" y2="50" stroke="#ddb84a" stroke-width="0.8" opacity="0.6"/>
<line x1="50" y1="8" x2="84" y2="50" stroke="#ddb84a" stroke-width="0.8" opacity="0.6"/>
<!-- Arêtes intermédiaires inf -->
<line x1="50" y1="92" x2="16" y2="50" stroke="#ddb84a" stroke-width="0.8" opacity="0.6"/>
<line x1="50" y1="92" x2="84" y2="50" stroke="#ddb84a" stroke-width="0.8" opacity="0.6"/>
<!-- Reflet lumineux (facette haute gauche) -->
<polygon points="50,8 32,50 41,29" fill="#ddb84a" opacity="0.35"/>
<!-- Petites étoiles déco aux 4 coins -->
<g fill="#c49a1a" opacity="0.6">
<polygon points="8,8 10,11 8,14 6,11" />
<polygon points="92,8 94,11 92,14 90,11"/>
<polygon points="8,92 10,89 8,86 6,89" />
<polygon points="92,92 94,89 92,86 90,89"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB