18 lines
450 B
Python
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))
|