Skip to content

Add light/dark auto-switch - #14151

Merged
larsoner merged 4 commits into
mne-tools:mainfrom
larsoner:autoswitch
Aug 25, 2026
Merged

Add light/dark auto-switch#14151
larsoner merged 4 commits into
mne-tools:mainfrom
larsoner:autoswitch

Conversation

@larsoner

Copy link
Copy Markdown
Member

Closes #9182

Knocking off one more TODO in our code using Claude Opus 5 to draft changes (which I've reviewed)... automatic switching on macOS when the system theme changes. Mostly a code refactor, one tricky point (needing to apply to children iff they had one applied previously). Also deleted a comment that doesn't apply anymore.

Comment thread mne/viz/backends/_qt.py Outdated
# our own setStyleSheet emits PaletteChange; without this the signal recurses
window._mne_theme_updating = True
try:
# re-setting an unchanged sheet costs styled children (sliders) native rendering

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this comment (specifically the verb "costs")

Comment thread mne/viz/backends/_qt.py
@larsoner
larsoner enabled auto-merge (squash) August 25, 2026 11:56
@larsoner
larsoner merged commit 8fa0c10 into mne-tools:main Aug 25, 2026
31 checks passed
@larsoner
larsoner deleted the autoswitch branch August 25, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Automatic light/dark mode switching of open STC plot windows

2 participants