From 214a389ad34385a9a02957bc861e7a703a684610 Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sun, 1 Feb 2026 20:14:49 +0100 Subject: [PATCH] fix: if statement to disable windows transparency --- main.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 7752441..ebb0718 100644 --- a/main.py +++ b/main.py @@ -24,12 +24,11 @@ args = parser.parse_args() def run_gui(): app = QtWidgets.QApplication([]) widget = MainWindow() - if state.window_transparency is True: - if platform.system() != "Windows": - qdarktheme.setup_theme("auto", custom_colors={"background": "#00000000"}) - widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) - else: - qdarktheme.setup_theme("auto") + if state.window_transparency and platform.system() != "Windows": + qdarktheme.setup_theme("auto", custom_colors={"background": "#00000000"}) + widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground) + else: + qdarktheme.setup_theme("auto") from core.utils.general.logs import set_main_window set_main_window(widget)