Skip to content

Commit

Permalink
🎨 Changed selection and running/pending colors
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisFederico committed Feb 19, 2022
1 parent 4d01d8d commit ceee345
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyflow/blocks/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(
self.pen_width = 3
self._pen_outline = QPen(QColor("#00000000"))
self._pen_outline.setWidth(self.pen_width)
self._pen_outline_selected = QPen(QColor("#800030FF"))
self._pen_outline_selected = QPen(QColor("#FFFFA637"))
self._pen_outline_selected.setWidth(self.pen_width)
self._brush_background = QBrush(BACKGROUND_COLOR)

Expand Down
4 changes: 2 additions & 2 deletions pyflow/blocks/codeblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def __init__(self, source: str = "", **kwargs):

self._pen_outlines = {
ExecutableState.IDLE: QPen(QColor("#00000000")), # No outline
ExecutableState.RUNNING: QPen(QColor("#ff6107ff")), # Purple
ExecutableState.PENDING: QPen(QColor("#80fc6107")), # Dark orange
ExecutableState.RUNNING: QPen(QColor("#fffc6107")), # Dark orange
ExecutableState.PENDING: QPen(QColor("#30fc6107")), # Transparent orange
ExecutableState.DONE: QPen(QColor("#158000")), # Dark green
ExecutableState.CRASHED: QPen(QColor("#ff0000")), # Red: Crashed
}
Expand Down
4 changes: 2 additions & 2 deletions pyflow/core/edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class Edge(QGraphicsPathItem, Serializable, Executable):

def __init__(
self,
edge_width: float = 6.0,
edge_width: float = 5.0,
path_type=DEFAULT_DATA["path_type"],
edge_color="#001000",
edge_selected_color="#0030FF",
edge_selected_color="#FFA637",
edge_running_color="#FF0000",
edge_pending_color="#00ff00",
source: QPointF = QPointF(0, 0),
Expand Down

0 comments on commit ceee345

Please sign in to comment.