From ceee34547bb52b5426ff8d0e39eadf3237881b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=AFs=20F=C3=A9d=C3=A9rico?= Date: Sat, 19 Feb 2022 13:12:03 +0100 Subject: [PATCH] :art: Changed selection and running/pending colors --- pyflow/blocks/block.py | 2 +- pyflow/blocks/codeblock.py | 4 ++-- pyflow/core/edge.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyflow/blocks/block.py b/pyflow/blocks/block.py index 3c2887b0..fe53fede 100644 --- a/pyflow/blocks/block.py +++ b/pyflow/blocks/block.py @@ -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) diff --git a/pyflow/blocks/codeblock.py b/pyflow/blocks/codeblock.py index ebc0917d..bdaa1dee 100644 --- a/pyflow/blocks/codeblock.py +++ b/pyflow/blocks/codeblock.py @@ -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 } diff --git a/pyflow/core/edge.py b/pyflow/core/edge.py index db44ae4a..4c1d4bb5 100644 --- a/pyflow/core/edge.py +++ b/pyflow/core/edge.py @@ -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),