Base defense armor unit icon style fix.

This commit is contained in:
Khopa 2020-09-20 17:15:43 +02:00
parent 5042ac1789
commit 4019da8ba9
3 changed files with 20 additions and 3 deletions

View File

@ -17,7 +17,6 @@ class QBaseDefenseGroupInfo(QGroupBox):
self.init_ui()
def init_ui(self):
unit_dict = {}
layout = QGridLayout()
@ -33,8 +32,8 @@ class QBaseDefenseGroupInfo(QGroupBox):
if k in VEHICLES_ICONS.keys():
icon.setPixmap(VEHICLES_ICONS[k])
else:
icon.setText("<b>" + k[:6] + "</b>")
icon.setProperty("style", "icon-plane")
icon.setText("<b>" + k[:9] + "</b>")
icon.setProperty("style", "icon-armor")
layout.addWidget(icon, i, 0)
layout.addWidget(QLabel(str(v) + " x " + "<strong>" + k + "</strong>"), i, 1)
i = i + 1

View File

@ -198,6 +198,15 @@ QLabel[style="icon-plane"]{
color:white;
}
QLabel[style="icon-armor"]{
background-color:#48719D;
min-height:24px;
max-width: 64px;
border: 1px solid black;
text-align:center;
color:white;
}
QLabel[style="BARCAP"]{
border: 1px solid black;
background-color: #445299;

View File

@ -106,6 +106,15 @@ QLabel[style="icon-plane"]{
color:white;
}
QLabel[style="icon-armor"]{
background-color:#48719D;
min-height:24px;
max-width: 64px;
border: 1px solid black;
text-align:center;
color:white;
}
QLabel[style="bordered"]{
border: 1px solid black;
}