Skip to content

Commit

Permalink
Make dark mode work on Windows 10/11
Browse files Browse the repository at this point in the history
  • Loading branch information
justaCasualCoder committed Feb 5, 2024
1 parent 85730d6 commit c3c72af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion guiunstable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit c3c72af

Please sign in to comment.