fix: 添加iupcd链接并调整列表样式

- 在Makefile的LDFLAGS中添加-liupcd库链接,确保编译时正确链接
- 调整主界面中IupFlatList的视觉样式:修改分隔线颜色为深灰,添加白色背景、边框和焦点支持,提升用户体验
This commit is contained in:
2026-03-16 17:39:59 +08:00
parent e4a2713ef8
commit 1493ba6872
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -39,10 +39,13 @@ int main(int argc, char **argv)
list_path = IupFlatList();
IupSetAttribute(list_path, "EXPAND", "YES");
IupSetAttribute(list_path, "HLINE", "YES");
IupSetAttribute(list_path, "HLINECOLOR", "200 200 200");
IupSetAttribute(list_path, "HLINECOLOR", "100 100 100"); // 灰色
IupSetAttribute(list_path, "ITEMPADDING", "5x5");
IupSetAttribute(list_path, "BACKCOLOR", "255 255 255");
IupSetAttribute(list_path, "BORDER", "YES");
IupSetAttribute(list_path, "CANFOCUS", "YES");
// IupFlatList 不支持 VISIBLELINES,高度由 EXPAND 和布局决定
// 创建右侧按钮
btn_new = IupButton("新建(N)", NULL);
btn_edit = IupButton("编辑(E)", NULL);