m_m_x
Chieftain
Could someone please help in creating a mod to remove the thick black border around unit flags? I think this would give the flags a cleaner, visually appealing look. Thank you!
I'm not sure what is going on with their UI/UX team- this is yet another example of poor design decision
This is awesome, thanks!Hi there,
thank you very much Elhoim for this link, and beezany for the mod
Sadly this mod doesn't improve the units and districts health bars (size and transparency)
I don't know anything about coding myself, but I tried to tinker something with some help of chatGPT...
Be careful, this isn't a mod, it's a modification of the game's source files.
If anyone can turn this into an easy-to-install mod for the community, that would be great
In the meantime, don't forget to create a backup of your original files before making any changes.
Here are the before/after screenshots, followed by the tutorial:
View attachment 727347
View attachment 727348
Modifications for unit flags
(Removing the thick black outlines, thinning the health bar and adding transparency its background)
File to modify :
C:\SteamLibrary\steamapps\common\Sid Meier's Civilization VII\Base\modules\base-standard\ui\unit-flags\unit-flags.css
(you can simply open this file with your Windows text editor and use ctrl+F to find the data to change)
Here are the changes, I've highlighted in bold the elements that have been modified or added)
1/
.unit-flag__shape {
background-size: 117%;
background-position: 50% 50%;
2/
.unit-flag__healthbar {
top: -0.1111111111rem;
background-color: #0A0A0AC7;
height: 0.42rem;
3/
.unit-flag__healthbar-inner {
background-color: #9bd371;
top: 0.1111111111rem;
bottom: 0.1111111111rem;
left: 0.1111111111rem;
right: 0.1111111111rem;
height: 0.20rem;
max-width: 89%;
Modifications for districts health bars
(Thinning the health bar, and adding transparency to its background)
File to modify :
C:\SteamLibrary\steamapps\common\Sid Meier's Civilization VII\Base\modules\base-standard\ui\district\district-health.css
Here are the changes :
1/
.district-health-bar {
position: relative;
width: 4.5555555556rem;
height: 0.6rem;
pointer-events: auto;
background-color: #0A0A0AC7;
2/
.district-health-bar-ink {
background-color: #9bd371;
height: 0.3rem;
position: absolute;
top: 50%;
transform: translateY(-50%);
And that's all
Hope this will work well for you,
feel free to adjust the datas according to your preferences![]()