Skip to content
Snippets Groups Projects

Add active color for port and wider active signals

Merged Oscar Gustafsson requested to merge schedulecolor into master
3 files
+ 36
24
Compare changes
  • Side-by-side
  • Inline
Files
3
from qtpy.QtGui import QColor
from qtpy.QtGui import QColor
from b_asic._preferences import (
from b_asic._preferences import EXECUTION_TIME_COLOR, LATENCY_COLOR, SIGNAL_COLOR
EXECUTION_TIME_COLOR,
LATENCY_COLOR,
SIGNAL_COLOR,
)
SIGNAL_INACTIVE = QColor(*SIGNAL_COLOR)
SIGNAL_INACTIVE = QColor(*SIGNAL_COLOR)
SIGNAL_ACTIVE = QColor(0, 207, 181)
SIGNAL_ACTIVE = QColor(0, 207, 181)
SIGNAL_WIDTH = 0.03
SIGNAL_WIDTH = 0.03
 
SIGNAL_WIDTH_ACTIVE = 0.05
OPERATION_LATENCY_INACTIVE = QColor(*LATENCY_COLOR)
OPERATION_LATENCY_INACTIVE = QColor(*LATENCY_COLOR)
OPERATION_LATENCY_ACTIVE = QColor(0, 207, 181)
OPERATION_LATENCY_ACTIVE = QColor(0, 207, 181)
@@ -16,8 +13,6 @@ OPERATION_EXECUTION_TIME_INACTIVE = QColor(*EXECUTION_TIME_COLOR)
@@ -16,8 +13,6 @@ OPERATION_EXECUTION_TIME_INACTIVE = QColor(*EXECUTION_TIME_COLOR)
OPERATION_EXECUTION_TIME_ACTIVE = QColor(*EXECUTION_TIME_COLOR)
OPERATION_EXECUTION_TIME_ACTIVE = QColor(*EXECUTION_TIME_COLOR)
OPERATION_HEIGHT = 0.75
OPERATION_HEIGHT = 0.75
OPERATION_GAP = (
OPERATION_GAP = 1 - OPERATION_HEIGHT # TODO: For now, should really fix the bug
1 - OPERATION_HEIGHT
) # TODO: For now, should really fix the bug
SCHEDULE_INDENT = 0.2
SCHEDULE_INDENT = 0.2
Loading