mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +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()
|
||||
|
||||
|
||||
|
||||
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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user