mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
fix: correct function call for dark mode detection
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from core.ui.gui import MainWindow
|
||||
from core.ui.gui import state_debug
|
||||
|
||||
from PySide6 import QtWidgets
|
||||
import qdarktheme
|
||||
import darkdetect
|
||||
@@ -10,7 +11,7 @@ debug = True
|
||||
def run_gui():
|
||||
state_debug(debug)
|
||||
app = QtWidgets.QApplication([])
|
||||
if darkdetect.isDark:
|
||||
if darkdetect.isDark():
|
||||
app.setStyleSheet(qdarktheme.load_stylesheet("dark"))
|
||||
else:
|
||||
app.setStyleSheet(qdarktheme.load_stylesheet("light"))
|
||||
|
||||
Reference in New Issue
Block a user