mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 01:49:42 +02:00
fix: qdarktheme setup on some notification popups
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user