initial commit
This commit is contained in:
12
gotify_tray/gui/themes/__init__.py
Normal file
12
gotify_tray/gui/themes/__init__.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from PyQt6 import QtWidgets
|
||||
|
||||
|
||||
def set_theme(app: QtWidgets.QApplication, theme: str = "default"):
|
||||
if theme == "default":
|
||||
from . import default
|
||||
|
||||
app.setPalette(default.palette())
|
||||
elif theme == "dark":
|
||||
from . import dark
|
||||
|
||||
app.setPalette(dark.palette())
|
||||
Reference in New Issue
Block a user