Minor visual changes for the Network Status connections table #2274
|
@ -192,12 +192,13 @@ class NetworkStatus(QtGui.QWidget, RetranslateMixin):
|
||||||
0, 1,
|
0, 1,
|
||||||
QtGui.QTableWidgetItem("%s" % (rating))
|
QtGui.QTableWidgetItem("%s" % (rating))
|
||||||
)
|
)
|
||||||
if outbound:
|
brush = QtGui.QBrush(
|
||||||
brush = QtGui.QBrush(QtGui.QColor("yellow"), QtCore.Qt.SolidPattern)
|
QtGui.QColor("yellow" if outbound else "green"),
|
||||||
else:
|
QtCore.Qt.SolidPattern)
|
||||||
brush = QtGui.QBrush(QtGui.QColor("green"), QtCore.Qt.SolidPattern)
|
|
||||||
for j in range(1):
|
for j in range(1):
|
||||||
self.tableWidgetConnectionCount.item(0, j).setBackground(brush)
|
self.tableWidgetConnectionCount.item(0, j).setBackground(brush)
|
||||||
|
self.tableWidgetConnectionCount.item(0, j).setForeground(
|
||||||
|
QtGui.QBrush(QtGui.QColor("black"), QtCore.Qt.SolidPattern))
|
||||||
self.tableWidgetConnectionCount.item(0, 0).setData(QtCore.Qt.UserRole, destination)
|
self.tableWidgetConnectionCount.item(0, 0).setData(QtCore.Qt.UserRole, destination)
|
||||||
self.tableWidgetConnectionCount.item(0, 1).setData(QtCore.Qt.UserRole, outbound)
|
self.tableWidgetConnectionCount.item(0, 1).setData(QtCore.Qt.UserRole, outbound)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -16,6 +16,13 @@
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">
|
||||||
|
STableWidget {
|
||||||
|
background: palette(Button);
|
||||||
|
}
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,0">
|
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,0">
|
||||||
|
@ -42,42 +49,8 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="STableWidget" name="tableWidgetConnectionCount">
|
<widget class="STableWidget" name="tableWidgetConnectionCount">
|
||||||
<property name="palette">
|
<property name="focusPolicy">
|
||||||
<palette>
|
<enum>Qt::NoFocus</enum>
|
||||||
<active>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>212</red>
|
|
||||||
<green>208</green>
|
|
||||||
<blue>200</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>212</red>
|
|
||||||
<green>208</green>
|
|
||||||
<blue>200</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>212</red>
|
|
||||||
<green>208</green>
|
|
||||||
<blue>200</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::Box</enum>
|
<enum>QFrame::Box</enum>
|
||||||
|
|
Reference in New Issue
Block a user