Archived
修复了配置文件中默认主题设置不生效的问题
This commit is contained in:
2 files changed
+10
-1
No files matched your search
@@ -17,6 +17,7 @@ class Settings:
|
||||
self.data = yaml.load(fp.read(), Loader=yaml.Loader)
|
||||
self.__servers = self.data['servers']
|
||||
self.__database = self.data['database']
|
||||
self.__view = self.data['view']
|
||||
|
||||
def all_data(self) -> Dict:
|
||||
"""
|
||||
@@ -25,6 +26,14 @@ class Settings:
|
||||
"""
|
||||
return self.data
|
||||
|
||||
@property
|
||||
def default_style(self) -> str:
|
||||
"""
|
||||
默认显示主题
|
||||
:return:
|
||||
"""
|
||||
return self.__view['style']
|
||||
|
||||
@property
|
||||
def host(self) -> str:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user