refactor(ui): 提取UI常量到配置文件并重构全局变量

- 新增 config.h 集中管理所有UI常量,如窗口标题、尺寸、颜色等
- 将全局变量和控件指针移至 globals.c 进行统一管理
- 更新 Makefile 以包含新增的源文件
- 修改 ui.c 使用配置常量替代硬编码值,提高可维护性
This commit is contained in:
2026-03-18 22:21:36 +08:00
parent 197b318c61
commit 59db3dc33b
6 changed files with 80 additions and 48 deletions
Binary file not shown.