Skip to content

Commit

Permalink
enable/disable groups fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Jun 27, 2024
1 parent d18e212 commit 1e2ec2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/asammdf/gui/widgets/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,11 @@ def channel_selection_item_changed(self, top_left, bottom_right, roles):
palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)

brush = QtGui.QBrush(item._current_background_color)
brush = QtGui.QBrush(
item._current_background_color
if item._current_background_color is not None
else QtCore.Qt.BrushStyle.NoBrush
)
palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Window, brush)
palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Window, brush)

Expand Down

0 comments on commit 1e2ec2d

Please sign in to comment.