Fix no_dark option in example, fixes #167

This commit is contained in:
dpizetta
2019-05-20 16:49:43 -03:00
parent 9a1fe7f675
commit 6e547cd20c
+5 -3
View File
@@ -204,8 +204,6 @@ def main():
# Getting style
style_method = lambda: qdarkstyle.load_stylesheet_from_environment(is_pyqtgraph=True)
if args.no_dark:
style = ''
def write_settings(window):
"""Get window settings and write it into a file."""
@@ -237,7 +235,11 @@ def main():
app.setApplicationName('QDarkStyle Example')
# setup stylesheet
style = style_method()
style = ''
if args.no_dark is False:
style = style_method()
app.setStyleSheet(style)
# create main window