From 9b136a14df241a68ed569a2cd73b84c6847d8ff4 Mon Sep 17 00:00:00 2001
From: Oscar Gustafsson <oscar.gustafsson@gmail.com>
Date: Sat, 3 Sep 2022 22:48:36 +0200
Subject: [PATCH] Change color scheme and fix color issue

---
 b_asic/scheduler_gui/_preferences.py            | 10 +++++-----
 b_asic/scheduler_gui/graphics_component_item.py |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/b_asic/scheduler_gui/_preferences.py b/b_asic/scheduler_gui/_preferences.py
index f9817f11..ac6a8c52 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 0e63697e..8726d605 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()
-- 
GitLab