Skip to content

Commit

Permalink
quick dirty fix Bitmessage#2233: invisible network status peers; part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kashikoibumi committed May 18, 2024
1 parent a24c144 commit b59536b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/bitmessageqt/networkstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,8 @@ def updateNetworkStatusTab(self, outbound, add, destination):
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:
Expand Down
27 changes: 27 additions & 0 deletions src/bitmessageqt/networkstatus.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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">
Expand All @@ -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>
Expand Down

0 comments on commit b59536b

Please sign in to comment.