mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 11:47:27 -03:00
Update __init__.py
This commit is contained in:
parent
610b37413e
commit
aef4ba9bed
1 changed files with 2 additions and 4 deletions
|
@ -98,14 +98,12 @@ class Application(QtWidgets.QApplication):
|
||||||
curr_settings.load()
|
curr_settings.load()
|
||||||
current_theme = curr_settings.get("theme")
|
current_theme = curr_settings.get("theme")
|
||||||
|
|
||||||
if current_theme == 0:
|
if current_theme == 1:
|
||||||
return "dark" if self.is_dark_mode() else "light"
|
|
||||||
elif current_theme == 1:
|
|
||||||
return "light"
|
return "light"
|
||||||
elif current_theme == 2:
|
elif current_theme == 2:
|
||||||
return "dark"
|
return "dark"
|
||||||
else:
|
else:
|
||||||
return "light"
|
return "dark" if self.is_dark_mode() else "light"
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue