v3.1.0: one more colorblind correction pass for inventory

This commit is contained in:
Evan Debenham
2025-05-20 13:01:02 -04:00
parent f44a87af46
commit 7a2c2e2321
3 changed files with 14 additions and 18 deletions

View File

@@ -88,17 +88,15 @@ public class InventorySlot extends ItemSlot {
bg.resetColor(); bg.resetColor();
if (item.cursed && item.cursedKnown) { if (item.cursed && item.cursedKnown) {
bg.ra = +0.3f; bg.ra = +0.3f;
bg.ga = -0.15f; bg.ga = -0.2f;
bg.ba = -0.15f; bg.ba = -0.2f;
} else if (!item.isIdentified()) { } else if (!item.isIdentified()) {
if ((item instanceof EquipableItem || item instanceof Wand) && item.cursedKnown){ if ((item instanceof EquipableItem || item instanceof Wand) && item.cursedKnown){
bg.ba = +0.3f; bg.ba = +0.3f;
bg.ga = +0.06f; bg.ra = -0.1f;
bg.ra = -0.06f;
} else { } else {
bg.ra = +0.3f; bg.ra = +0.35f;
bg.ba = +0.3f; bg.ba = +0.35f;
bg.ga = -0.1f;
} }
} }

View File

@@ -868,7 +868,7 @@ public class WndJournal extends WndTabbed {
gridItem.addSecondIcon(secondIcon); gridItem.addSecondIcon(secondIcon);
} }
if (!seen) { if (!seen) {
gridItem.hardLightBG(2f, 0.8f, 2f); gridItem.hardLightBG(2f, 1f, 2f);
} }
grid.addItem(gridItem); grid.addItem(gridItem);
} }
@@ -1005,7 +1005,7 @@ public class WndJournal extends WndTabbed {
} }
}; };
if (!seen) { if (!seen) {
gridItem.hardLightBG(2f, 0.8f, 2f); gridItem.hardLightBG(2f, 1f, 2f);
} }
grid.addItem(gridItem); grid.addItem(gridItem);
} }
@@ -1059,10 +1059,10 @@ public class WndJournal extends WndTabbed {
text.measure(); text.measure();
gridItem.addSecondIcon( text ); gridItem.addSecondIcon( text );
if (!read) { if (!read) {
gridItem.hardLightBG(0.9f, 0.9f, 2f); gridItem.hardLightBG(0.6f, 1f, 2f);
} }
} else { } else {
gridItem.hardLightBG(2f, 0.8f, 2f); gridItem.hardLightBG(2.2f, 1f, 2.2f);
} }
grid.addItem(gridItem); grid.addItem(gridItem);
} }

View File

@@ -485,17 +485,15 @@ public class WndRanking extends WndTabbed {
slot.item( item ); slot.item( item );
if (item.cursed && item.cursedKnown) { if (item.cursed && item.cursedKnown) {
bg.ra = +0.3f; bg.ra = +0.3f;
bg.ga = -0.15f; bg.ga = -0.2f;
bg.ba = -0.15f; bg.ba = -0.2f;
} else if (!item.isIdentified()) { } else if (!item.isIdentified()) {
if ((item instanceof EquipableItem || item instanceof Wand) && item.cursedKnown){ if ((item instanceof EquipableItem || item instanceof Wand) && item.cursedKnown){
bg.ba = +0.3f; bg.ba = +0.3f;
bg.ga = +0.06f; bg.ra = -0.1f;
bg.ra = -0.06f;
} else { } else {
bg.ra = +0.3f; bg.ra = +0.35f;
bg.ba = +0.3f; bg.ba = +0.35f;
bg.ga = -0.1f;
} }
} }
} }