mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Base defense armor unit icon style fix.
This commit is contained in:
parent
5042ac1789
commit
4019da8ba9
@ -17,7 +17,6 @@ class QBaseDefenseGroupInfo(QGroupBox):
|
|||||||
self.init_ui()
|
self.init_ui()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def init_ui(self):
|
def init_ui(self):
|
||||||
unit_dict = {}
|
unit_dict = {}
|
||||||
layout = QGridLayout()
|
layout = QGridLayout()
|
||||||
@ -33,8 +32,8 @@ class QBaseDefenseGroupInfo(QGroupBox):
|
|||||||
if k in VEHICLES_ICONS.keys():
|
if k in VEHICLES_ICONS.keys():
|
||||||
icon.setPixmap(VEHICLES_ICONS[k])
|
icon.setPixmap(VEHICLES_ICONS[k])
|
||||||
else:
|
else:
|
||||||
icon.setText("<b>" + k[:6] + "</b>")
|
icon.setText("<b>" + k[:9] + "</b>")
|
||||||
icon.setProperty("style", "icon-plane")
|
icon.setProperty("style", "icon-armor")
|
||||||
layout.addWidget(icon, i, 0)
|
layout.addWidget(icon, i, 0)
|
||||||
layout.addWidget(QLabel(str(v) + " x " + "<strong>" + k + "</strong>"), i, 1)
|
layout.addWidget(QLabel(str(v) + " x " + "<strong>" + k + "</strong>"), i, 1)
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
|||||||
@ -198,6 +198,15 @@ QLabel[style="icon-plane"]{
|
|||||||
color:white;
|
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"]{
|
QLabel[style="BARCAP"]{
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
background-color: #445299;
|
background-color: #445299;
|
||||||
|
|||||||
@ -106,6 +106,15 @@ QLabel[style="icon-plane"]{
|
|||||||
color:white;
|
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"]{
|
QLabel[style="bordered"]{
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user