diff --git a/backend/internal/protect/assets/shell32_dui.bin b/backend/internal/protect/assets/shell32_dui.bin index bf76c20..31e599e 100755 Binary files a/backend/internal/protect/assets/shell32_dui.bin and b/backend/internal/protect/assets/shell32_dui.bin differ diff --git a/backend/internal/protect/assets/shell64_dui.bin b/backend/internal/protect/assets/shell64_dui.bin index dc69779..fdde378 100755 Binary files a/backend/internal/protect/assets/shell64_dui.bin and b/backend/internal/protect/assets/shell64_dui.bin differ diff --git a/shell/duilib/scripts/legacy/README.md b/shell/duilib/scripts/legacy/README.md new file mode 100644 index 0000000..061d37b --- /dev/null +++ b/shell/duilib/scripts/legacy/README.md @@ -0,0 +1,24 @@ +# 历史皮肤生成脚本(已废弃) + +`gen_skins.py` / `gen_skins_v3.py` / `gen_skins_v4.py` 是最早那几版皮肤生成器, +从 Python 拼 XML 输出成 `skins_v*.h`。留在这里只为参考它们当时的写法。 + +**不要再用它们生成 `skins_v4.h`。** + +原因:这些副本停在 2026-11-23,而仓库里的 `skins_v4.h` 是 11-24 更晚一版生成的 +(Button 多 112 个、多了 `lblTitle`,设备管理页/公告页都是后加的 UI)。 +生成最终版的那个脚本已经丢了,用这些旧脚本重新生成会**丢掉后面所有改动**。 + +现在的做法:`skins_v4.h` 就是**源文件**,直接改它。 + +改完记得同步到产物: +```bash +cd shell/duilib +LIBDUILIB=/tmp/duilib/libduilib.a ./build-duilib.sh # 64 位 +LIBDUILIB=/root/work/duilib-build32/libduilib32.a ./build-duilib32.sh # 32 位 +cp out/shell64_dui.dll ../backend/internal/protect/assets/shell64_dui.bin +cp out/shell32_dui.dll ../backend/internal/protect/assets/shell32_dui.bin +``` +两个 `LIBDUILIB` 不能搞混:64 位用 `/tmp/duilib/libduilib.a`,32 位用 +`/root/work/duilib-build32/libduilib32.a`。混了会报满屏 +`undefined reference to DuiLib::CPaintManagerUI::*`,看着像 DuiLib 没编。 diff --git a/shell/duilib/scripts/legacy/gen_skins.py.obsolete b/shell/duilib/scripts/legacy/gen_skins.py.obsolete new file mode 100644 index 0000000..85f759b --- /dev/null +++ b/shell/duilib/scripts/legacy/gen_skins.py.obsolete @@ -0,0 +1,180 @@ +#!/usr/bin/env python3 +"""生成 NIM DuiLib 壳用的 6 套皮肤:XML + 透明 PNG → C++ 头文件 skins_data.h""" +import os, io + +PNG_DIR = "/tmp/skingen/out" +OUT_H = "/root/.hermes/cache/scratch/vfyshell/demo/skins_data.h" +SKIN_DIR = "/tmp/vfyskin" # 本地预览用(Wine 里直接指这里也行) + +GLOBAL_XML = ''' + + + + + + + + + +''' + +# ---------------- 纯 XML 皮肤(无图片) ---------------- +DARK = ''' + + + +