set fusion style before verify_server
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user