fix: qdarktheme setup on some notification popups

This commit is contained in:
2026-04-10 18:47:21 +02:00
parent 8d5b76e054
commit 761158746f
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -1,9 +1,13 @@
from PySide6.QtWidgets import QMessageBox
import qdarktheme
class NotificationPopup(QMessageBox):
def __init__(self, title, text, infotext=None, parent=None):
def __init__(self, title, text, infotext=None, parent=None, darkmode=True):
super().__init__(parent)
if darkmode is True:
qdarktheme.setup_theme("auto")
self.setIcon(QMessageBox.Icon.Information)
self.setWindowTitle(title)
self.setText(text)