diff --git a/app/components/Image.module.css b/app/components/Image.module.css index c16fef254..9143dc37e 100644 --- a/app/components/Image.module.css +++ b/app/components/Image.module.css @@ -44,7 +44,8 @@ inlines mask images it finds on real ones, and a dropped mask paints the whole layer over the icon */ .inkArt, -.inkHighlight { +.inkHighlight, +.outlinedArt { position: absolute; inset: 0; mask-size: var(--_art-size); @@ -65,3 +66,10 @@ background-color: #fff; mask-image: var(--ink-highlight); } + +.outlinedArt { + background-image: var(--ink-silhouette); + background-size: var(--_art-size); + background-repeat: no-repeat; + background-position: center; +} diff --git a/app/components/Image.tsx b/app/components/Image.tsx index 8255f4905..ad93a02b7 100644 --- a/app/components/Image.tsx +++ b/app/components/Image.tsx @@ -274,6 +274,42 @@ function InkTintedImage({ ); } +/** Image with the same subtle outline sub and special weapon icons have, so light art stays visible on light backgrounds. */ +export function OutlinedImage({ + path, + alt, + title, + className, + containerClassName, + containerStyle, + width, + height, + size, + style, + testId, +}: Omit) { + return ( +
+ + + +
+ ); +} + type TierImageProps = { tier: { name: TierName; isPlus: boolean }; } & Omit; diff --git a/app/features/comp-analyzer/components/SelectedWeapons.tsx b/app/features/comp-analyzer/components/SelectedWeapons.tsx index e1f39728c..a6a2fcb4e 100644 --- a/app/features/comp-analyzer/components/SelectedWeapons.tsx +++ b/app/features/comp-analyzer/components/SelectedWeapons.tsx @@ -20,7 +20,7 @@ import { nanoid } from "nanoid"; import { useState } from "react"; import { useTranslation } from "react-i18next"; import { - Image, + OutlinedImage, SpecialWeaponImage, SubWeaponImage, WeaponImage, @@ -103,7 +103,7 @@ export function SelectedWeapons({ {Array.from({ length: emptySlotCount }, (_, i) => (
- +
diff --git a/changelog/2026-09-23-comp-analyzer-empty-slot-outline.md b/changelog/2026-09-23-comp-analyzer-empty-slot-outline.md new file mode 100644 index 000000000..5d6c8e406 --- /dev/null +++ b/changelog/2026-09-23-comp-analyzer-empty-slot-outline.md @@ -0,0 +1,5 @@ +--- +navItem: comp-analyzer +type: bug +--- +Comp analyzer empty weapon slots are easier to see in light mode