nmreval/nmreval/gui_qt/__init__.py

18 lines
450 B
Python
Raw Normal View History

2022-03-08 09:27:40 +00:00
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))