Skip to content
Snippets Groups Projects
Commit 07b3f5eb authored by inso's avatar inso
Browse files

Better colors in network tab

parent 427a7d0c
Branches
Tags
No related merge requests found
......@@ -130,6 +130,13 @@ class NetworkTableModel(QAbstractTableModel):
Node.CORRUPTED: QColor(Qt.darkRed)
}
return colors[node.state]
if role == Qt.ForegroundRole:
colors = {Node.ONLINE: QVariant(),
Node.OFFLINE: QColor(Qt.lightGray),
Node.DESYNCED: QColor(Qt.black),
Node.CORRUPTED: QColor(Qt.lightGray)
}
return colors[node.state]
def flags(self, index):
return Qt.ItemIsSelectable | Qt.ItemIsEnabled
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment