feat(ui): 添加深色模式支持

- 新增深色/浅色模式切换按钮,位于主窗口底部
- 在配置文件中定义主题颜色(浅色/深色背景、列表背景、前景色)
- 更新 UI 工具函数以支持动态主题切换,包括列表斑马纹适配
- 添加翻译条目(Dark Mode/Light Mode)并更新编译脚本
- 修改主窗口创建逻辑,集成主题切换回调
- 调整列表背景色属性从 BACKCOLOR 改为 BGCOLOR 以保持一致性
This commit is contained in:
2026-05-02 01:32:56 +08:00
parent 3df2988915
commit 720ebb535d
14 changed files with 233 additions and 27 deletions
+9 -1
View File
@@ -406,4 +406,12 @@ msgstr "请先选择要删除的项"
#: src/controller/callbacks_basic.c
msgid "This path already exists and will not be added again."
msgstr "该路径已存在,不会重复添加。"
msgstr "该路径已存在,不会重复添加。"
#: src/ui/main_window.c
msgid "Dark Mode"
msgstr "深色模式"
#: src/ui/main_window.c
msgid "Light Mode"
msgstr "浅色模式"