Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,8 @@
"MaxParallelCores": "Maximum cores for parallel tasks",
"MaxParallelCoresExplanation": "Controls how many CPU cores DIM can use for intensive tasks like Loadout Optimizer and Loadout Analyzer. Higher values may improve performance but use more system resources.",
"OrnamentDisplay": "Show Ornaments on item tiles",
"OrnamentDisplayExplanationDisabled": "Items will never display their ornaments",
"OrnamentDisplayExplanationEnabled": "Hovering or long-pressing armor will hide its ornament",
"OrnamentDisplayExplanationHide": "Hovering or long-pressing an item will hide its ornament",
"OrnamentDisplayExplanationShow": "Hovering or long-pressing an item will show its ornament",
"ResetToDefault": "Reset",
Expand Down
12 changes: 6 additions & 6 deletions src/app/inventory/ItemIcon.m.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ $commonBg: #366f42;
content-visibility 0.2s allow-discrete;
}

:global(.item):hover & {
opacity: var(--ornament-display-opacity, 1);
content-visibility: var(--ornament-display-visibility, auto);
:global(.item):hover &.isArmor {
opacity: 1;
content-visibility: auto;
}
}

Expand All @@ -114,9 +114,9 @@ $commonBg: #366f42;
content-visibility 0.2s allow-discrete;
}

:global(.item):hover & {
opacity: calc(1 - var(--ornament-display-opacity, 1));
content-visibility: var(--ornament-display-visibility-inverse, hidden);
:global(.item):hover &.isArmor {
opacity: 0;
content-visibility: hidden;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/app/inventory/ItemIcon.m.scss.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions src/app/inventory/ItemIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,18 @@ export default function ItemIcon({ item, className }: { item: DimItem; className
{foreground && (
<div
style={bungieBackgroundStyle(foreground)}
className={clsx({ [styles.hasAltIcon]: Boolean(altIcon) })}
className={clsx({
[styles.hasAltIcon]: Boolean(altIcon),
[styles.isArmor]: item.bucket.inArmor,
})}
/>
)}
{altIcon && (
<div
style={bungieBackgroundStyle(altIcon)}
className={clsx({ [styles.altIcon]: true, [styles.isArmor]: item.bucket.inArmor })}
/>
)}
{altIcon && <div style={bungieBackgroundStyle(altIcon)} className={styles.altIcon} />}
{masterworkGlow && (
<div style={bungieBackgroundStyle(masterworkGlow)} className={styles.adjustOpacity} />
)}
Expand Down
8 changes: 6 additions & 2 deletions src/app/settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ const themeOptions = mapToOptions({
vexnet: 'Vex Network',
});

// Old ornament setting; keeping these strings from being culled
// t('Settings.OrnamentDisplayExplanationHide')
// t('Settings.OrnamentDisplayExplanationShow')

export default function SettingsPage() {
usePageTitle(t('Settings.Settings'));
const dispatch = useThunkDispatch();
Expand Down Expand Up @@ -526,8 +530,8 @@ export default function SettingsPage() {
/>
<div className={styles.fineprint}>
{settings.ornamentDisplay === OrnamentDisplay.All
? t('Settings.OrnamentDisplayExplanationHide')
: t('Settings.OrnamentDisplayExplanationShow')}
? t('Settings.OrnamentDisplayExplanationEnabled')
: t('Settings.OrnamentDisplayExplanationDisabled')}
</div>
</div>

Expand Down
2 changes: 2 additions & 0 deletions src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,8 @@
"MaxParallelCores": "Maximum cores for parallel tasks",
"MaxParallelCoresExplanation": "Controls how many CPU cores DIM can use for intensive tasks like Loadout Optimizer and Loadout Analyzer. Higher values may improve performance but use more system resources.",
"OrnamentDisplay": "Show Ornaments on item tiles",
"OrnamentDisplayExplanationDisabled": "Items will never display their ornaments",
"OrnamentDisplayExplanationEnabled": "Hovering or long-pressing armor will hide its ornament",
"OrnamentDisplayExplanationHide": "Hovering or long-pressing an item will hide its ornament",
"OrnamentDisplayExplanationShow": "Hovering or long-pressing an item will show its ornament",
"ResetToDefault": "Reset",
Expand Down