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:
@@ -15,7 +15,7 @@ BIN_DIR = bin
|
|||||||
# -mwindows: Create GUI app (no console)
|
# -mwindows: Create GUI app (no console)
|
||||||
# -DUNICODE -D_UNICODE: Use Wide Character API
|
# -DUNICODE -D_UNICODE: Use Wide Character API
|
||||||
CFLAGS = -Wall -O2 -I$(INCLUDE_DIR) -I$(LOCAL_INCLUDE_DIR) -D_WIN32 -DUNICODE -D_UNICODE -fexec-charset=UTF-8
|
CFLAGS = -Wall -O2 -I$(INCLUDE_DIR) -I$(LOCAL_INCLUDE_DIR) -D_WIN32 -DUNICODE -D_UNICODE -fexec-charset=UTF-8
|
||||||
LDFLAGS = -L$(LIB_DIR) -liup -lgdi32 -lcomdlg32 -lcomctl32 -luuid -lole32 -ladvapi32 -mwindows
|
LDFLAGS = -L$(LIB_DIR) -liup -liupcd -lgdi32 -lcomdlg32 -lcomctl32 -luuid -lole32 -ladvapi32 -mwindows
|
||||||
|
|
||||||
# Source
|
# Source
|
||||||
SRC = src/main.c src/utils.c src/registry.c src/callbacks.c
|
SRC = src/main.c src/utils.c src/registry.c src/callbacks.c
|
||||||
|
|||||||
+4
-1
@@ -39,8 +39,11 @@ int main(int argc, char **argv)
|
|||||||
list_path = IupFlatList();
|
list_path = IupFlatList();
|
||||||
IupSetAttribute(list_path, "EXPAND", "YES");
|
IupSetAttribute(list_path, "EXPAND", "YES");
|
||||||
IupSetAttribute(list_path, "HLINE", "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, "ITEMPADDING", "5x5");
|
||||||
|
IupSetAttribute(list_path, "BACKCOLOR", "255 255 255");
|
||||||
|
IupSetAttribute(list_path, "BORDER", "YES");
|
||||||
|
IupSetAttribute(list_path, "CANFOCUS", "YES");
|
||||||
// IupFlatList 不支持 VISIBLELINES,高度由 EXPAND 和布局决定
|
// IupFlatList 不支持 VISIBLELINES,高度由 EXPAND 和布局决定
|
||||||
|
|
||||||
// 创建右侧按钮
|
// 创建右侧按钮
|
||||||
|
|||||||
Reference in New Issue
Block a user