-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
37 lines (26 loc) · 826 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import logging
import sys
import qdarktheme
from PySide6.QtGui import QIcon
from PySide6.QtWidgets import QApplication
from odbot.main_window import MainWindow
from odbot.utils import resource_path
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
def main():
app = QApplication()
# Set application name and version
app.setApplicationName("MindstormsDashboard")
app.setApplicationVersion("0.1.0")
# Set application icon
app.setWindowIcon(QIcon(resource_path("odbot/assets/icon.png")))
# Set dark theme
qdarktheme.setup_theme("auto", custom_colors={"[dark]": {
"background": "#282c34",
"primary": "#c0bdbd",}})
# Create main window
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()