nmreval/nmreval/gui_qt/__init__.py
2022-03-08 10:27:40 +01:00

18 lines
450 B
Python

from .Qt import QtWidgets
from .lib.styles import MyProxyStyle
from ..configs import read_configuration
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))