diff --git a/data/src/glossaries/elements.yml b/data/src/glossaries/elements.yml index c971988..1e118dc 100644 --- a/data/src/glossaries/elements.yml +++ b/data/src/glossaries/elements.yml @@ -119,7 +119,7 @@ custom: icon: true short: - typst: 'box(height: 0.75em, baseline: 1.1pt, inset: 0pt, image("/images/icons/bolt-lightning-solid-full.svg"))' + typst: 'box(height: 0.75em, baseline: 1.1pt, inset: 0pt, image("/images/icons/lightning-fill.svg"))' long: Foudre description: "Type de dégât élémentaire mineur abyssal." group: "Dégâts élémentaires simples : Abyssaux" @@ -144,7 +144,7 @@ custom: icon: true short: - typst: 'box(height: 0.75em, baseline: 1.1pt, inset: 0pt, image("/images/icons/transcendental.png"))' + typst: 'box(height: 0.75em, baseline: 1.1pt, inset: 0pt, image("/images/icons/transcendental.svg"))' long: Transcendental description: 'Type de dégâts transcendant la réalitée, ces dégâts ne peuvent être mitigés que par des techniques de tier égal ou suppérieur à cette technique.' plural: transcendentaux diff --git a/images/icons/antimaterial.png b/images/icons/antimaterial.png deleted file mode 100644 index ef8b3b6..0000000 Binary files a/images/icons/antimaterial.png and /dev/null differ diff --git a/images/icons/antimaterial.svg b/images/icons/antimaterial.svg index 3a3d917..2f2366e 100644 --- a/images/icons/antimaterial.svg +++ b/images/icons/antimaterial.svg @@ -6,7 +6,7 @@ preserveAspectRatio="xMidYMid meet"> +fill="#421469" stroke="none"> diff --git a/images/icons/arbreakk_color.png b/images/icons/arbreakk_color.png deleted file mode 100644 index e12675a..0000000 Binary files a/images/icons/arbreakk_color.png and /dev/null differ diff --git a/images/icons/arbreakk_color.svg b/images/icons/arbreakk_color.svg index 7cec3cb..67ef6bb 100644 --- a/images/icons/arbreakk_color.svg +++ b/images/icons/arbreakk_color.svg @@ -6,7 +6,7 @@ preserveAspectRatio="xMidYMid meet"> +fill="#4f3617" stroke="none"> +fill="#595652" stroke="none"> + diff --git a/images/icons/droplet-solid-full.svg b/images/icons/droplet-solid-full.svg index 5b5a0c0..5432c5a 100644 --- a/images/icons/droplet-solid-full.svg +++ b/images/icons/droplet-solid-full.svg @@ -1 +1 @@ - + diff --git a/images/icons/fire-flame-curved-solid-full.svg b/images/icons/fire-flame-curved-solid-full.svg index 3d2a388..3995f2c 100644 --- a/images/icons/fire-flame-curved-solid-full.svg +++ b/images/icons/fire-flame-curved-solid-full.svg @@ -1 +1 @@ - + diff --git a/images/icons/heart.png b/images/icons/heart.png deleted file mode 100644 index d5d7cf4..0000000 Binary files a/images/icons/heart.png and /dev/null differ diff --git a/images/icons/icicles-solid-full.svg b/images/icons/icicles-solid-full.svg index 12854f2..8122269 100644 --- a/images/icons/icicles-solid-full.svg +++ b/images/icons/icicles-solid-full.svg @@ -1 +1 @@ - + diff --git a/images/icons/leaf-solid-full.svg b/images/icons/leaf-solid-full.svg index abd29e5..61612ef 100644 --- a/images/icons/leaf-solid-full.svg +++ b/images/icons/leaf-solid-full.svg @@ -1 +1 @@ - + diff --git a/images/icons/lightning-fill.svg b/images/icons/lightning-fill.svg new file mode 100644 index 0000000..55eac4d --- /dev/null +++ b/images/icons/lightning-fill.svg @@ -0,0 +1 @@ + diff --git a/images/icons/moon-solid-full.svg b/images/icons/moon-solid-full.svg index 3e1c6f7..0d560d6 100644 --- a/images/icons/moon-solid-full.svg +++ b/images/icons/moon-solid-full.svg @@ -1 +1 @@ - + diff --git a/images/icons/mountain-solid-full.svg b/images/icons/mountain-solid-full.svg index f1eda3b..edef6ad 100644 --- a/images/icons/mountain-solid-full.svg +++ b/images/icons/mountain-solid-full.svg @@ -1 +1 @@ - + diff --git a/images/icons/reload.svg b/images/icons/reload.svg index 11838c8..b7c4a61 100644 --- a/images/icons/reload.svg +++ b/images/icons/reload.svg @@ -1,6 +1,6 @@ - - + diff --git a/images/icons/tier.svg b/images/icons/tier.svg index e08f2a3..514fdb1 100644 --- a/images/icons/tier.svg +++ b/images/icons/tier.svg @@ -1,6 +1,6 @@ - + - + " stroke-width="7" stroke-linecap="round"> diff --git a/images/icons/torque_color.png b/images/icons/torque_color.png deleted file mode 100644 index 41321fc..0000000 Binary files a/images/icons/torque_color.png and /dev/null differ diff --git a/images/icons/torque_color.svg b/images/icons/torque_color.svg index 636f9b9..ed129d8 100644 --- a/images/icons/torque_color.svg +++ b/images/icons/torque_color.svg @@ -6,7 +6,7 @@ preserveAspectRatio="xMidYMid meet"> +fill="#4b1f76" stroke="none"> +fill="#8635c1" stroke="none"> + diff --git a/images/icons/wind-solid-full.svg b/images/icons/wind-solid-full.svg index 005439d..1b4fb6f 100644 --- a/images/icons/wind-solid-full.svg +++ b/images/icons/wind-solid-full.svg @@ -1 +1 @@ - + diff --git a/setup/theme/symbols.typ b/setup/theme/symbols.typ index f63906c..698357c 100644 --- a/setup/theme/symbols.typ +++ b/setup/theme/symbols.typ @@ -33,7 +33,7 @@ height: 0.75em, baseline: 0.5pt, inset: 0pt, - image("/images/icons/torque_color.png"), + image("/images/icons/torque_color.svg"), ) #let precision-box = text(fill: green, box( @@ -47,20 +47,20 @@ height: 0.85em, baseline: 0.5pt, inset: 0pt, - image("/images/icons/armor_pierce.png"), + image("/images/icons/armor_pierce.svg"), )) #let arbreak-box = text(fill: green, box( height: 0.75em, baseline: 0.5pt, inset: 0pt, - image("/images/icons/arbreakk_color.png"), + image("/images/icons/arbreakk_color.svg"), )) #let am-box = box( height: 0.75em, baseline: 0.5pt, inset: 0pt, - image("/images/icons/antimaterial.png"), + image("/images/icons/antimaterial.svg"), ) #let rmax-box = box( @@ -136,13 +136,13 @@ height: 0.65em, baseline: 0.5pt, inset: 0pt, - image("/images/yonsen_glyphs/hunter_v3.png"), + image("/images/yonsen_glyphs/hunter_v3.svg"), ) #let sen-hunter-box = box( height: 0.65em, baseline: 0.5pt, inset: 0pt, - image("/images/yonsen_glyphs/saint.png"), + image("/images/yonsen_glyphs/saint.svg"), ) //----- SVG RECOLORING ----- @@ -193,17 +193,14 @@ return svg-box } - //----- Recolor black. ----- + //----- Recolor fills. ----- let replacement = color.to-hex() - let black-pattern = regex( - "(?i)(#000000\\b|#000\\b|\\bblack\\b|rgb\\(\\s*0\\s*[, ]\\s*0\\s*[, ]\\s*0\\s*\\))", - ) - - let recolored = svg.replace(black-pattern, replacement) + let fill-pattern = regex("(?i)fill\\s*=\\s*\"[^\"]*\"") + let recolored = svg.replace(fill-pattern, "fill=\"" + replacement + "\"") if recolored == svg { - // panic("re-colorize: no black color could be replaced.") + // panic("re-colorize: no fill attribute could be replaced.") return svg-box }