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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ class CityButton(val city: CityInfo, private val tileGroup: WorldTileGroup): Tab
if (!forPopup) {
val cityReligion = city.religion.getMajorityReligion()
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()
}
}