Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Improve vline #181

Merged
merged 14 commits into from
Aug 2, 2023
Prev Previous commit
Next Next commit
also change label color on hover
  • Loading branch information
marsipu committed Aug 1, 2023
commit f279c8c96377e576f7d9120f2dae76c96701c749
6 changes: 6 additions & 0 deletions mne_qt_browser/_pg_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,12 @@ def __init__(self, mne, pos, bounds):
self.mne = mne
self.label = VLineLabel(self)

def setMouseHover(self, hover):
super().setMouseHover(hover)
# Also change color of label
self.label.fill = self.currentPen.color()
self.label.border = self.currentPen


def _q_font(point_size, bold=False):
font = QFont()
Expand Down