Update __init__.py

This commit is contained in:
SIDDHANT DIXIT 2021-07-24 01:48:04 +05:30
parent 610b37413e
commit aef4ba9bed

View file

@ -98,14 +98,12 @@ class Application(QtWidgets.QApplication):
curr_settings.load()
current_theme = curr_settings.get("theme")
if current_theme == 0:
return "dark" if self.is_dark_mode() else "light"
elif current_theme == 1:
if current_theme == 1:
return "light"
elif current_theme == 2:
return "dark"
else:
return "light"
return "dark" if self.is_dark_mode() else "light"
def main():
"""