From c3c72af7b882a89c3d1f7937b899ee4c61e5c4c5 Mon Sep 17 00:00:00 2001 From: justaCasualCoder <120528794+justaCasualCoder@users.noreply.github.com> Date: Sun, 4 Feb 2024 21:25:00 -0500 Subject: [PATCH] Make dark mode work on Windows 10/11 --- guiunstable.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guiunstable.py b/guiunstable.py index a24a531..cd6ff64 100644 --- a/guiunstable.py +++ b/guiunstable.py @@ -40,6 +40,8 @@ def __init__(self, parent=None): atexit.register(self.on_exit) self.w = None self.i = None + global local_filename + local_filename = None # Create widgets self.label = QLabel(self) self.label.setText("Please select your IMG to Flash & Partiton.") @@ -340,7 +342,6 @@ def download_flash(self): sys.exit(1) url = "https://dl.twrp.me" + dllinks[1]["href"].replace(".html", "") print("I: Downloading " + url) - global local_filename local_filename = tempfile.NamedTemporaryFile(suffix=".img", delete=False).name referer_url = url + ".html" @@ -405,6 +406,7 @@ def device_selected(self, index): if __name__ == "__main__": # Create the Qt Application app = QApplication(sys.argv) + app.setStyle('fusion') # Create and show the form form = Form() form.show()