Skip to content
Snippets Groups Projects
Commit 9b136a14 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Change color scheme and fix color issue

parent c111ffb3
No related branches found
No related tags found
No related merge requests found
Pipeline #74707 passed
......@@ -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)
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment