nmreval/src/gui_qt/__init__.py

19 lines
457 B
Python
Raw Normal View History

2022-10-20 15:23:15 +00:00
from nmreval.configs import read_configuration
2022-03-08 09:27:40 +00:00
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))