nmreval/src/gui_qt/__init__.py
dominik 8d148b639b BUGFIX: VFT;
change to src layout
2022-10-20 17:23:15 +02:00

19 lines
457 B
Python

from nmreval.configs import read_configuration
from .Qt import QtWidgets
from .lib.styles import MyProxyStyle
class App(QtWidgets.QApplication):
color = 'light'
theme = 'normal'
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
configs = read_configuration()
App.theme = configs.get('GUI', 'Theme')
App.color = configs.get('GUI', 'Color')
self.setStyle(MyProxyStyle(App.color))