mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Choose a better visible color for the religious symbol on the city button (#5485)
This commit is contained in:
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user