mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
fix: 添加iupcd链接并调整列表样式
- 在Makefile的LDFLAGS中添加-liupcd库链接,确保编译时正确链接 - 调整主界面中IupFlatList的视觉样式:修改分隔线颜色为深灰,添加白色背景、边框和焦点支持,提升用户体验
This commit is contained in:
+5
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user