Choose a better visible color for the religious symbol on the city button (#5485)

This commit is contained in:
Xander Lenstra
2021-10-14 22:38:35 +02:00
committed by GitHub
parent 48bbccbda6
commit 24545a92dd

View File

@ -263,7 +263,7 @@ class CityButton(val city: CityInfo, private val tileGroup: WorldTileGroup): Tab
if (!forPopup) { if (!forPopup) {
val cityReligion = city.religion.getMajorityReligion() val cityReligion = city.religion.getMajorityReligion()
if (cityReligion != null) { if (cityReligion != null) {
val religionImage = ImageGetter.getReligionImage(cityReligion.getIconName()) val religionImage = ImageGetter.getReligionImage(cityReligion.getIconName()).apply { color = city.civInfo.nation.getInnerColor() }
iconTable.add(religionImage).size(20f).padLeft(5f).fillY() iconTable.add(religionImage).size(20f).padLeft(5f).fillY()
} }
} }