Commit e64c1a0c by 吴斌

update

parent df6e421f
import os import os
import sass
from PyQt5.QtCore import QObject from PyQt5.QtCore import QObject
class Config(QObject): class Config(QObject):
DARK = "dark"
LIGHT = "light"
def __init__(self): def __init__(self):
super().__init__() super().__init__()
# 工程根目录 # 工程根目录
self.root_path = "" self.root_path = ""
self.theme = Config.LIGHT
self.getRootPath() self.getRootPath()
def getRootPath(self): def getRootPath(self):
...@@ -22,7 +18,6 @@ class Config(QObject): ...@@ -22,7 +18,6 @@ class Config(QObject):
self.root_path = os.path.dirname(current_path) self.root_path = os.path.dirname(current_path)
def init_qss(self): def init_qss(self):
current_theme = self.theme
theme_dir = self.root_path + "\\style\\" theme_dir = self.root_path + "\\style\\"
theme_list = os.listdir(theme_dir) theme_list = os.listdir(theme_dir)
qss = "" qss = ""
......
...@@ -60,8 +60,6 @@ class CustomExample(QScrollArea): ...@@ -60,8 +60,6 @@ class CustomExample(QScrollArea):
button_4.clicked.connect(lambda: drawer_bottom.open()) button_4.clicked.connect(lambda: drawer_bottom.open())
self.layout.addWidget(button_4, 3, 3) self.layout.addWidget(button_4, 3, 3)
self.main_widget.adjustSize() self.main_widget.adjustSize()
def __init_slot(self): def __init_slot(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment