Skip to content

Commit b885b65

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

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ $commonBg: #366f42;
9898
}
9999

100100
:global(.item):hover &.isArmor {
101-
opacity: var(--ornament-display-opacity, 1);
101+
opacity: calc(
102+
1 - var(--ornament-display-opacity, 1) * (1 - var(--ornament-display-opacity, 1))
103+
);
104+
// there's probably some additional visibility handling needed here
102105
content-visibility: var(--ornament-display-visibility, auto);
103106
}
104107
}
@@ -115,7 +118,8 @@ $commonBg: #366f42;
115118
}
116119

117120
:global(.item):hover &.isArmor {
118-
opacity: calc(1 - var(--ornament-display-opacity, 1));
121+
opacity: calc(var(--ornament-display-opacity, 1) * (1 - var(--ornament-display-opacity, 1)));
122+
// there's probably some additional visibility handling needed here
119123
content-visibility: var(--ornament-display-visibility-inverse, hidden);
120124
}
121125
}

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)