Skip to content

Commit b6a1469

Browse files
committed
Update behavior so setting off = no hover behavior
1 parent b20f097 commit b6a1469

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

config/i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@
12591259
"MaxParallelCores": "Maximum cores for parallel tasks",
12601260
"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.",
12611261
"OrnamentDisplay": "Show Ornaments on item tiles",
1262-
"OrnamentDisplayExplanationDisabled": "Hovering or long-pressing armor will show its ornament",
1262+
"OrnamentDisplayExplanationDisabled": "Items will never display their ornaments",
12631263
"OrnamentDisplayExplanationEnabled": "Hovering or long-pressing armor will hide its ornament",
12641264
"OrnamentDisplayExplanationHide": "Hovering or long-pressing an item will hide its ornament",
12651265
"OrnamentDisplayExplanationShow": "Hovering or long-pressing an item will show its ornament",

src/app/inventory/ItemIcon.m.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ $commonBg: #366f42;
9898
}
9999

100100
:global(.item):hover &.isArmor {
101-
opacity: var(--ornament-display-opacity, 1);
101+
opacity: 1;
102+
// there's probably some additional visibility handling needed here
102103
content-visibility: var(--ornament-display-visibility, auto);
103104
}
104105
}
@@ -115,7 +116,8 @@ $commonBg: #366f42;
115116
}
116117

117118
:global(.item):hover &.isArmor {
118-
opacity: calc(1 - var(--ornament-display-opacity, 1));
119+
opacity: 0;
120+
// there's probably some additional visibility handling needed here
119121
content-visibility: var(--ornament-display-visibility-inverse, hidden);
120122
}
121123
}

src/locale/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@
12421242
"MaxParallelCores": "Maximum cores for parallel tasks",
12431243
"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.",
12441244
"OrnamentDisplay": "Show Ornaments on item tiles",
1245-
"OrnamentDisplayExplanationDisabled": "Hovering or long-pressing armor will show its ornament",
1245+
"OrnamentDisplayExplanationDisabled": "Items will never display their ornaments",
12461246
"OrnamentDisplayExplanationEnabled": "Hovering or long-pressing armor will hide its ornament",
12471247
"OrnamentDisplayExplanationHide": "Hovering or long-pressing an item will hide its ornament",
12481248
"OrnamentDisplayExplanationShow": "Hovering or long-pressing an item will show its ornament",

0 commit comments

Comments
 (0)