diff --git a/b_asic/scheduler_gui/_preferences.py b/b_asic/scheduler_gui/_preferences.py index f9817f11995e73d210ad9d85228c91ec57da32fa..ac6a8c522bd68fa7c926b52a2f8e3745ec430d93 100644 --- a/b_asic/scheduler_gui/_preferences.py +++ b/b_asic/scheduler_gui/_preferences.py @@ -2,10 +2,10 @@ from qtpy.QtCore import Qt from qtpy.QtGui import QColor SIGNAL_INACTIVE = QColor(Qt.black) -SIGNAL_ACTIVE = QColor(Qt.red) +SIGNAL_ACTIVE = QColor(0, 207, 181) SIGNAL_WIDTH = 0.03 -OPERATION_LATENCY_INACTIVE = QColor(Qt.lightGray) -OPERATION_LATENCY_ACTIVE = QColor(Qt.red) -OPERATION_EXECUTION_TIME_INACTIVE = QColor(Qt.magenta) -OPERATION_EXECUTION_TIME_ACTIVE = QColor(Qt.magenta) +OPERATION_LATENCY_INACTIVE = QColor(0, 185, 231) +OPERATION_LATENCY_ACTIVE = QColor(0, 207, 181) +OPERATION_EXECUTION_TIME_INACTIVE = QColor(255, 100, 66, 200) +OPERATION_EXECUTION_TIME_ACTIVE = QColor(255, 100, 66, 200) diff --git a/b_asic/scheduler_gui/graphics_component_item.py b/b_asic/scheduler_gui/graphics_component_item.py index 0e63697edbe2504c051e43eb9ca0c43344e0e92f..8726d605d112d3cfe453044c40133873c8dad8dd 100644 --- a/b_asic/scheduler_gui/graphics_component_item.py +++ b/b_asic/scheduler_gui/graphics_component_item.py @@ -127,8 +127,6 @@ class GraphicsComponentItem(QGraphicsItemGroup): # pen2.setCosmetic(True) port_size = 7/self._scale # the diameter of an port - gray = QColor(Qt.gray) - gray.setAlpha(100) # 0-255 execution_time = QColor(OPERATION_EXECUTION_TIME_INACTIVE) execution_time.setAlpha(200) # 0-255 pen3 = QPen() # used by execution time outline @@ -216,3 +214,5 @@ class GraphicsComponentItem(QGraphicsItemGroup): self.addToGroup(self._label_item) if self._operation.execution_time: self.addToGroup(self._execution_time_item) + + self.set_inactive()