quick dirty fix #2233: invisible network status peers; part 2

This commit is contained in:
Kashiko Koibumi 2024-05-19 08:33:32 +09:00
parent a24c144be0
commit b59536b058
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4
2 changed files with 27 additions and 4 deletions

View File

@ -187,12 +187,8 @@ class NetworkStatus(QtWidgets.QWidget, RetranslateMixin):
brush = QtGui.QBrush(QtGui.QColor("yellow"), QtCore.Qt.BrushStyle.SolidPattern)
else:
brush = QtGui.QBrush(QtGui.QColor("green"), QtCore.Qt.BrushStyle.SolidPattern)
# XXX quick darty fix for issue #2233
foreground_brush = QtGui.QBrush(QtGui.QColor("black"), QtCore.Qt.BrushStyle.SolidPattern)
for j in range(1):
self.tableWidgetConnectionCount.item(0, j).setBackground(brush)
# XXX quick darty fix for issue #2233
self.tableWidgetConnectionCount.item(0, j).setForeground(foreground_brush)
self.tableWidgetConnectionCount.item(0, 0).setData(QtCore.Qt.ItemDataRole.UserRole, destination)
self.tableWidgetConnectionCount.item(0, 1).setData(QtCore.Qt.ItemDataRole.UserRole, outbound)
else:

View File

@ -54,6 +54,15 @@
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="Base">
@ -65,6 +74,15 @@
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="Base">
@ -76,6 +94,15 @@
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>