Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
This commit is contained in:
@@ -184,7 +184,7 @@ def main(page: ft.Page):
|
|||||||
loaded_config = load_config()
|
loaded_config = load_config()
|
||||||
app_state.gui_config = loaded_config
|
app_state.gui_config = loaded_config
|
||||||
app_state.adapter_paths = loaded_config.get("adapters", []).copy()
|
app_state.adapter_paths = loaded_config.get("adapters", []).copy()
|
||||||
app_state.bot_script_path = loaded_config.get("bot_script_path", "bot.py") # Load bot script path
|
app_state.bot_script_path = loaded_config.get("bot_script_path", "bot.py") # Load bot script path
|
||||||
|
|
||||||
# 加载用户自定义的 Python 路径
|
# 加载用户自定义的 Python 路径
|
||||||
if "python_path" in loaded_config and os.path.exists(loaded_config["python_path"]):
|
if "python_path" in loaded_config and os.path.exists(loaded_config["python_path"]):
|
||||||
@@ -228,7 +228,7 @@ def main(page: ft.Page):
|
|||||||
color_scheme=ft.ColorScheme(
|
color_scheme=ft.ColorScheme(
|
||||||
primary=ft.colors.ORANGE_700,
|
primary=ft.colors.ORANGE_700,
|
||||||
primary_container=ft.colors.ORANGE_800,
|
primary_container=ft.colors.ORANGE_800,
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
# 创建亮色主题
|
# 创建亮色主题
|
||||||
|
|||||||
Reference in New Issue
Block a user