mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-14 21:51:32 -05:00
Update __init__.py
This commit is contained in:
parent
9add128d0f
commit
1b2e1e6ebf
@ -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…
x
Reference in New Issue
Block a user