network: Change color.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-04-05 11:03:48 +02:00
1 parent 77736b0885
commit 37a311b303
1 file changed
+2 -2
+2 -2
View File
@@ -52,7 +52,7 @@ class NodeItem(QGraphicsItem):
# Select color in function of node position in graph and # Select color in function of node position in graph and
# status # status
color = Qt.black color = Qt.darkBlue
if self.graph.selected_new_edge_src_node() == self: if self.graph.selected_new_edge_src_node() == self:
color = Qt.darkRed color = Qt.darkRed
elif self.graph.selected_item() == self: elif self.graph.selected_item() == self:
@@ -139,7 +139,7 @@ class EdgeItem(QGraphicsItem):
return return
# Select color # Select color
color = Qt.black color = Qt.darkBlue
if self.graph.selected_item() == self: if self.graph.selected_item() == self:
color = Qt.red color = Qt.red
elif self.graph.current_edge() == self: elif self.graph.current_edge() == self: