We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5244309 commit 1f9e8f0Copy full SHA for 1f9e8f0
main.py
@@ -7,17 +7,18 @@
7
from PySide6.QtWidgets import QApplication
8
from node_editor_window import NodeEditorWindow
9
10
+
11
def load_stylesheet(app, filename="dark_theme.qss"):
12
"""Loads an external QSS file and applies it to the application."""
13
try:
14
with open(filename, "r") as f:
15
style = f.read()
16
app.setStyleSheet(style)
- print(f"Stylesheet '{filename}' loaded successfully.")
17
except FileNotFoundError:
18
print(f"Warning: Stylesheet '{filename}' not found. Using default style.")
19
20
-if __name__ == '__main__':
21
+if __name__ == "__main__":
22
# Create the Qt Application
23
app = QApplication(sys.argv)
24
0 commit comments