forked from rohankishore/Aura-Text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
34 lines (25 loc) · 895 Bytes
/
main.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
import json
import os
from PyQt6.QtWidgets import QApplication
import sys
from qt_material import apply_stylesheet
from auratext.Core.window import Window
# from auratext.Core import get_started
"""
This file includes the code to run the app. It also scans if the app is being opened for the first time in order to show the
setup instructions.
"""
local_app_data = os.path.join(os.getenv("LocalAppData"), "AuraText")
with open(f"{local_app_data}/data/config.json", "r") as config_file:
_config = json.load(config_file)
with open(f"{local_app_data}/data/theme.json", "r") as config_file:
_theme = json.load(config_file)
def main():
app = QApplication(sys.argv)
if _theme["theming"] == "material":
theme = _theme["material_type"] + ".xml"
apply_stylesheet(app, theme=theme)
ex = Window()
sys.exit(app.exec())
if __name__ == "__main__":
main()