Skip to content

Commit

Permalink
transparent selection / updated colors
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Dec 17, 2024
1 parent 5b6cdeb commit 06c612d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions iblrig/gui/online_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ class ResponseTimeDelegate(QStyledItemDelegate):
norm_min = 0.1
norm_max = 102.0
norm_div = np.log(norm_max / norm_min)
color_correct = QColor(44, 162, 95)
color_error = QColor(227, 74, 51)
color_correct = QColor(0, 107, 90)
color_error = QColor(219, 67, 37)
color_nogo = QColor(192, 192, 192)
color_text = QColor('white')
color_gradient0 = QColor(255, 255, 255, 0)
Expand Down Expand Up @@ -420,7 +420,7 @@ def __init__(self, raw_data_folder: DirectoryPath, parent: QObject | None = None
self.trials.horizontalHeader().setStretchLastSection(True)
self.trials.setStyleSheet(
'QHeaderView::section { border: none; background-color: white; }'
'QTableView::item:selected { color: black; selection-background-color: rgb(229, 229, 229); }'
'QTableView::item:selected { color: black; selection-background-color: rgba(0, 0, 0, 15%); }'
)
self.trials.setVerticalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
self.trials.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
Expand Down Expand Up @@ -486,6 +486,7 @@ def updatePlots(self, trial: int):
self.title.setText(f'Trial {trial}')
self.bpodWidget.setData(self.model.bpod_data(trial))
self.trials.setCurrentIndex(self.model.table_model.index(trial, 0))
self.trials.scrollToBottom()
self.update()

def onSelectionChanged(self, selected: QItemSelection, _: QItemSelection):
Expand Down

0 comments on commit 06c612d

Please sign in to comment.