set fusion style before verify_server

This commit is contained in:
dries.k
2022-11-02 23:46:38 +01:00
parent 686bac7499
commit 53ab09bee9
2 changed files with 2 additions and 3 deletions

View File

@@ -426,6 +426,7 @@ def start_gui():
app.setApplicationName(title) app.setApplicationName(title)
app.setQuitOnLastWindowClosed(False) app.setQuitOnLastWindowClosed(False)
app.setWindowIcon(QtGui.QIcon(get_icon("gotify-small"))) app.setWindowIcon(QtGui.QIcon(get_icon("gotify-small")))
app.setStyle("fusion")
init_logger(logger) init_logger(logger)

View File

@@ -16,9 +16,7 @@ styles = {
} }
def set_theme(app: QtWidgets.QApplication, style: str = "default"): def set_theme(app: QtWidgets.QApplication, style: str = "default"):
app.setStyle("fusion")
if style not in styles.keys(): if style not in styles.keys():
logger.error(f"set_style: style {style} is unsupported.") logger.error(f"set_style: style {style} is unsupported.")
return return