diff --git a/gui/main.py b/gui/main.py index 975b961..b211ca9 100644 --- a/gui/main.py +++ b/gui/main.py @@ -15,9 +15,15 @@ def main(): window = MainWindow() window.show() - with open("style/dark/darktheme.qss", "r") as f: - _style = f.read() - app.setStyleSheet(_style) + try: + with open("style/dark/darktheme.qss", "r") as f: + _style = f.read() + app.setStyleSheet(_style) + + except: + with open("data\darktheme.qss") as f: + _style = f.read() + app.setStyleSheet(_style) @@ -28,3 +34,4 @@ def main(): main() +##pyinstaller --windowed .\gui\main.py --paths C:\Users\davip\Documents\Projetos\2DpsNotes --add-data 'C:\Users\davip\Documents\Projetos\2DpsNotes\style\dark\darktheme.qss;data' \ No newline at end of file