mirror of https://gitlab.com/pamhyr/pamhyr2
network: Change color.
parent
77736b0885
commit
37a311b303
|
|
@ -52,7 +52,7 @@ class NodeItem(QGraphicsItem):
|
|||
|
||||
# Select color in function of node position in graph and
|
||||
# status
|
||||
color = Qt.black
|
||||
color = Qt.darkBlue
|
||||
if self.graph.selected_new_edge_src_node() == self:
|
||||
color = Qt.darkRed
|
||||
elif self.graph.selected_item() == self:
|
||||
|
|
@ -139,7 +139,7 @@ class EdgeItem(QGraphicsItem):
|
|||
return
|
||||
|
||||
# Select color
|
||||
color = Qt.black
|
||||
color = Qt.darkBlue
|
||||
if self.graph.selected_item() == self:
|
||||
color = Qt.red
|
||||
elif self.graph.current_edge() == self:
|
||||
|
|
|
|||
Loading…
Reference in New Issue