mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-06-08 14:18:51 +02:00
wip notification theme
This commit is contained in:
+1
-5
@@ -63,7 +63,7 @@ LIGHT_PALETTE = {
|
||||
|
||||
|
||||
def _connect_theme_change(slot) -> None:
|
||||
"""Connect *slot* to the available application theme-change signals."""
|
||||
"""Connect *slot* to the application theme-change signal."""
|
||||
qapp = QApplication.instance()
|
||||
if qapp is None:
|
||||
return
|
||||
@@ -72,10 +72,6 @@ def _connect_theme_change(slot) -> None:
|
||||
if hasattr(theme, "theme_changed"):
|
||||
theme.theme_changed.connect(slot)
|
||||
|
||||
legacy_signal = getattr(qapp, "theme_signal", None)
|
||||
if hasattr(legacy_signal, "theme_updated"):
|
||||
legacy_signal.theme_updated.connect(slot)
|
||||
|
||||
|
||||
class NotificationToast(QFrame):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user