Network: Change selected reach color and minor change.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-12 10:51:25 +01:00
1 parent ccb55ff4e1
commit 8ce5a4d215
1 file changed
+6 -3
+6 -3
View File
@@ -178,12 +178,15 @@ class EdgeItem(QGraphicsItem):
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:
color = Qt.black color = Qt.blue
elif not self.graph.graph.is_enable_edge(self.edge): elif not self.graph.graph.is_enable_edge(self.edge):
color = Qt.darkGray color = Qt.darkGray
painter.setPen(QPen(color, 2, Qt.SolidLine, Qt.RoundCap, painter.setPen(
Qt.RoundJoin)) QPen(
color, 2, Qt.SolidLine, Qt.RoundCap, Qt.RoundJoin
)
)
# Draw the line # Draw the line
painter.drawLine(line) painter.drawLine(line)