Skip to content

Commit

Permalink
Manually trigger PaletteChange
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed May 10, 2024
1 parent 4b65c81 commit 12715e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mnelab/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import mne
import numpy as np
from mne import channel_type
from PySide6.QtCore import QEvent, QMetaObject, QModelIndex, QObject, Qt, QUrl, Slot
from PySide6.QtCore import QEvent, QMetaObject, QModelIndex, QObject, Qt, QUrl, Signal, Slot
from PySide6.QtGui import QAction, QDesktopServices, QIcon, QKeySequence
from PySide6.QtWidgets import (
QApplication,
Expand Down Expand Up @@ -92,6 +92,7 @@ def __init__(self, model: Model):
[f"{Path(__file__).parent}/icons"] + QIcon.themeSearchPaths()
)
QIcon.setFallbackThemeName("light")
QApplication.sendEvent(self, QEvent(QEvent.PaletteChange))

self.actions = {} # contains all actions

Expand Down

0 comments on commit 12715e5

Please sign in to comment.