mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
720ebb535d
- 新增深色/浅色模式切换按钮,位于主窗口底部 - 在配置文件中定义主题颜色(浅色/深色背景、列表背景、前景色) - 更新 UI 工具函数以支持动态主题切换,包括列表斑马纹适配 - 添加翻译条目(Dark Mode/Light Mode)并更新编译脚本 - 修改主窗口创建逻辑,集成主题切换回调 - 调整列表背景色属性从 BACKCOLOR 改为 BGCOLOR 以保持一致性
42 lines
1022 B
C
42 lines
1022 B
C
#ifndef CALLBACKS_H
|
|
#define CALLBACKS_H
|
|
|
|
#include <iup.h>
|
|
|
|
// 按钮回调
|
|
int btn_new_cb(Ihandle *self);
|
|
int btn_edit_cb(Ihandle *self);
|
|
int btn_browse_cb(Ihandle *self);
|
|
int btn_del_cb(Ihandle *self);
|
|
int btn_up_cb(Ihandle *self);
|
|
int btn_down_cb(Ihandle *self);
|
|
int btn_clean_cb(Ihandle *self);
|
|
int btn_import_cb(Ihandle *self);
|
|
int btn_export_cb(Ihandle *self);
|
|
int btn_ok_cb(Ihandle *self);
|
|
int btn_cancel_cb(Ihandle *self);
|
|
int btn_help_cb(Ihandle *self);
|
|
int btn_lang_cb(Ihandle *self);
|
|
int darkmode_cb(Ihandle *self);
|
|
|
|
// 撤销/重做回调
|
|
int btn_undo_cb(Ihandle *self);
|
|
int btn_redo_cb(Ihandle *self);
|
|
|
|
// 搜索回调
|
|
int txt_search_cb(Ihandle *self);
|
|
|
|
// 双击回调
|
|
int list_dblclick_cb(Ihandle *self, int item, char *text);
|
|
|
|
// 拖拽回调
|
|
int list_dropfiles_cb(Ihandle *self, const char *filename, int num, int x, int y);
|
|
|
|
// 键盘按键回调
|
|
int list_k_any_cb(Ihandle *self, int c);
|
|
int dlg_k_any_cb(Ihandle *self, int c);
|
|
|
|
// 载入数据与更新UI
|
|
void load_all_paths(void);
|
|
|
|
#endif // CALLBACKS_H
|