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 = '''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+LIGHT = '''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+INDUSTRIAL = '''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+# ---------------- PNG 皮肤(整窗像素 alpha) ----------------
+def png_skin(theme, title, title_color, app_color, tip_color, prompt, btn_text, btn_color, has_quit, title_font="f14"):
+ quit_btn = ('\n ') if has_quit else ""
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {quit_btn}
+
+
+
+
+
+'''
+
+NEBULA = png_skin("nebula", "NEBULA · 授权验证", "#FFD9CCFF", "#FFB9A6FF", "#FF9C8FC7",
+ "请输入卡密激活本机", "激活授权", "#FFFFFFFF", True)
+ONYX = png_skin("onyx", "ONYX · 授权验证", "#FFE6C55C", "#FFE6C55C", "#FF9C8A5A",
+ "请输入卡密激活本机", "激 活", "#FF12100A", True)
+AURORA = png_skin("aurora", "AURORA · 授权验证", "#FFA8F0DC", "#FF7FF0CC", "#FF6FA898",
+ "请输入卡密激活本机", "激活授权", "#FF04231F", True)
+
+THEMES = {
+ "dark": (DARK, []),
+ "light": (LIGHT, []),
+ "industrial": (INDUSTRIAL, []),
+ "nebula": (NEBULA, ["nebula_bg.png", "nebula_btn.png", "nebula_btn_hot.png", "nebula_btn_down.png", "nebula_edit.png", "nebula_close.png"]),
+ "onyx": (ONYX, ["onyx_bg.png", "onyx_btn.png", "onyx_btn_hot.png", "onyx_btn_down.png", "onyx_edit.png", "onyx_close.png"]),
+ "aurora": (AURORA, ["aurora_bg.png", "aurora_btn.png", "aurora_btn_hot.png", "aurora_btn_down.png", "aurora_edit.png", "aurora_close.png"]),
+}
+
+# ---------------- 输出 C++ 头 ----------------
+files = [] # (name, bytes)
+files.append(("global.xml", GLOBAL_XML.encode("utf-8")))
+for theme, (xml, pngs) in THEMES.items():
+ files.append((f"{theme}.xml", xml.encode("utf-8")))
+ for p in pngs:
+ path = os.path.join(PNG_DIR, p)
+ if not os.path.exists(path):
+ raise SystemExit(f"缺图片: {path}")
+ files.append((p, open(path, "rb").read()))
+
+def c_array(name, data):
+ lines = [f"static const unsigned char {name}[] = {{"]
+ for i in range(0, len(data), 20):
+ lines.append(" " + ",".join(str(b) for b in data[i:i+20]) + ",")
+ lines.append("};")
+ return "\n".join(lines)
+
+with io.open(OUT_H, "w", encoding="utf-8") as f:
+ f.write("// 由 gen_skins.py 自动生成,不要手改\n")
+ f.write("#pragma once\n\n")
+ for idx, (name, data) in enumerate(files):
+ var = "s" + str(idx)
+ f.write(c_array(var, data) + "\n")
+ f.write(f"// {name} ({len(data)} B)\n\n")
+ f.write("struct SkinFile { const char *name; const unsigned char *data; unsigned int size; };\n")
+ f.write("static const SkinFile kSkins[] = {\n")
+ for idx, (name, data) in enumerate(files):
+ f.write(f' {{ "{name}", s{idx}, {len(data)} }},\n')
+ f.write(" { NULL, NULL, 0 },\n};\n\n")
+ f.write(f'static const char *kThemeList[] = {{ "dark","light","industrial","nebula","onyx","aurora", NULL }};\n')
+
+# ---------------- 同时铺一份到本地目录,方便 Wine 里直接看 ----------------
+for theme, (xml, pngs) in THEMES.items():
+ d = os.path.join(SKIN_DIR, theme)
+ os.makedirs(d, exist_ok=True)
+ open(os.path.join(d, "global.xml"), "w", encoding="utf-8").write(GLOBAL_XML)
+ open(os.path.join(d, theme + ".xml"), "w", encoding="utf-8").write(xml)
+ for p in pngs:
+ open(os.path.join(d, p), "wb").write(open(os.path.join(PNG_DIR, p), "rb").read())
+
+total = sum(len(d) for _, d in files)
+print(f"skins_data.h: {len(files)} 个文件 / {total/1024:.0f} KB")
+for n, d in files:
+ print(f" {n:22s} {len(d):>7} B")
diff --git a/shell/duilib/scripts/legacy/gen_skins_v3.py.obsolete b/shell/duilib/scripts/legacy/gen_skins_v3.py.obsolete
new file mode 100644
index 0000000..a1544fe
--- /dev/null
+++ b/shell/duilib/scripts/legacy/gen_skins_v3.py.obsolete
@@ -0,0 +1,358 @@
+#!/usr/bin/env python3
+# 生成 7 套「登录 / 注册」双面板皮肤(老 DuiLib,纯 XML 属性,不依赖图片)
+# 输出:/root/.hermes/cache/scratch/vfyshell/demo/skins_v3.h
+import io
+
+OUT = "/root/.hermes/cache/scratch/vfyshell/demo/skins_v3.h"
+
+# ---------- 公共片段 ----------
+def titlebar(bg, title_color, btn_color, height=44, inset=20, close_w=38):
+ return f'''
+
+
+
+
+'''
+
+def tab_underline(idle, active, bg, y=0):
+ """下划线式 tab:当前项下方一条主色线"""
+ return f'''
+
+
+
+
+
+
+
+
+
+'''
+
+def login_fields(label, inp_bg, inp_fg, inp_native, inp_border, remember_color, primary, btn_text_color, hint, tab_hint=""):
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+def reg_fields(label, inp_bg, inp_fg, inp_native, inp_border, primary, btn_text_color, accent):
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+def footer(dev_color, link_color):
+ return f'''
+
+
+
+
+
+
+'''
+
+# ---------------- 1. dark:下划线 tab,竖排 ----------------
+DARK = f'''
+
+
+{titlebar("#FF1D1D24", "#FFF0F0F4", "#FF9A9AA6")}
+{tab_underline("#FF85858F", "#FF4EA3E8", "#FF1D1D24")}
+
+
+
+
+{login_fields("#FFB4B4BE", "#FF2A2A33", "#FFF4F4F8", "#FF2A2A33", "#FF474755", "#FFB4B4BE", "#FF146FB8", "#FFFFFFFF", "登 录")}
+
+
+{reg_fields("#FFB4B4BE", "#FF2A2A33", "#FFF4F4F8", "#FF2A2A33", "#FF474755", "#FF1F8A5B", "#FFFFFFFF", "#FF2F6E4E")}
+
+{footer("#FF5C5C68", "#FF7FA5CC")}
+
+
+'''
+
+# ---------------- 2. light:分段按钮 tab,竖排 ----------------
+LIGHT = f'''
+
+
+{titlebar("#FFFFFFFF", "#FF1F1F24", "#FF6B6B75")}
+
+
+
+
+
+
+
+
+
+
+
+{login_fields("#FF4B5563", "#FFF1F3F7", "#FF1F2430", "#FFF1F3F7", "#FFC3CBD8", "#FF4B5563", "#FF1B6FD6", "#FFFFFFFF", "登录")}
+
+
+{reg_fields("#FF4B5563", "#FFF1F3F7", "#FF1F2430", "#FFF1F3F7", "#FFC3CBD8", "#FF128A5B", "#FFFFFFFF", "#FFD8EAE0")}
+
+{footer("#FF8A8F99", "#FF3B62B8")}
+
+
+'''
+
+# ---------------- 3. split:左品牌栏 + 右 tab ----------------
+SPLIT = f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{login_fields("#FF8794A3", "#FF1A1F27", "#FFF2F6FA", "#FF1A1F27", "#FF2E343D", "#FF8794A3", "#FF2C7BE5", "#FFFFFFFF", "登录")}
+
+
+{reg_fields("#FF8794A3", "#FF1A1F27", "#FFF2F6FA", "#FF1A1F27", "#FF2E343D", "#FF1F8A5B", "#FFFFFFFF", "#FF2B6A50")}
+
+{footer("#FF5E6B78", "#FF6FA8DC")}
+
+
+
+'''
+
+# ---------------- 4. card:顶部色条 + 卡片内 tab ----------------
+CARD = f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{login_fields("#FF4B5563", "#FFFFFFFF", "#FF1F2430", "#FFFFFFFF", "#FFC9D1DC", "#FF4B5563", "#FF3B2BD6", "#FFFFFFFF", "登录")}
+
+
+{reg_fields("#FF4B5563", "#FFF1F3F7", "#FF1F2430", "#FFF1F3F7", "#FFC3CBD8", "#FF128A5B", "#FFFFFFFF", "#FFD8EAE0")}
+
+
+
+
+'''
+
+# ---------------- 5. industrial:标题栏内 tab ----------------
+INDUSTRIAL = f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+{login_fields("#FF9FC0D8", "#FF14304A", "#FFEAF6FF", "#FF14304A", "#FF23567F", "#FF9FC0D8", "#FF1F6FB2", "#FFFFFFFF", "登录")}
+
+
+{reg_fields("#FF9FC0D8", "#FF14304A", "#FFEAF6FF", "#FF14304A", "#FF23567F", "#FF1F7A5E", "#FFFFFFFF", "#FF1B4A3C")}
+
+{footer("#FF5F89A6", "#FF6FA8C8")}
+
+
+'''
+
+# ---------------- 6. terminal:命令式 tab ----------------
+TERMINAL = f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{login_fields("#FF5E8A6C", "#FF16211A", "#FFD7F5DF", "#FF16211A", "#FF2B3A2D", "#FF5E8A6C", "#FF1B7A4E", "#FFFFFFFF", "[ 执行登录 ]")}
+
+
+{reg_fields("#FF5E8A6C", "#FF16211A", "#FFD7F5DF", "#FF16211A", "#FF2B3A2D", "#FF1B7A4E", "#FFFFFFFF", "#FF234A33")}
+
+{footer("#FF4E7A5C", "#FF6FA08A")}
+
+
+'''
+
+# ---------------- 7. compact:横向紧凑,tab 在左列 ----------------
+COMPACT = f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+SKINS = [("dark", DARK, 452, 548), ("light", LIGHT, 452, 548), ("split", SPLIT, 660, 548),
+ ("card", CARD, 700, 564), ("industrial", INDUSTRIAL, 580, 548),
+ ("terminal", TERMINAL, 600, 548), ("compact", COMPACT, 760, 206)]
+
+with io.open(OUT, "w", encoding="utf-8") as f:
+ f.write("// 由 gen_skins_v3.py 生成,不要手改\n#pragma once\n\n")
+ for name, xml, w, h in SKINS:
+ f.write(f'static const char *kSkin_{name} = R"SKIN({xml})SKIN";\n\n')
+ f.write('struct SkinDef { const char *name; const char *xml; int w, h; };\n')
+ f.write('static const SkinDef kSkins[] = {\n')
+ for name, xml, w, h in SKINS:
+ f.write(f' {{ "{name}", kSkin_{name}, {w}, {h} }},\n')
+ f.write(' { NULL, NULL, 0, 0 }\n};\n')
+
+print("skins_v3.h 已生成")
+for name, xml, w, h in SKINS:
+ print(f" {name:11s} {w}x{h} {len(xml)} 字节")
diff --git a/shell/duilib/scripts/legacy/gen_skins_v4.py.obsolete b/shell/duilib/scripts/legacy/gen_skins_v4.py.obsolete
new file mode 100644
index 0000000..2f0e300
--- /dev/null
+++ b/shell/duilib/scripts/legacy/gen_skins_v4.py.obsolete
@@ -0,0 +1,445 @@
+#!/usr/bin/env python3
+# 生成 7 套「登录 / 注册 / 卡密充值 / 忘记密码」四 tab 皮肤(老 DuiLib,纯 XML)
+# 输出:/root/.hermes/cache/scratch/vfyshell/demo/skins_v4.h
+import io
+
+OUT = "/root/.hermes/cache/scratch/vfyshell/demo/skins_v4.h"
+
+# ------------------------- 面板片段 -------------------------
+def p_login(L, IN_BG, IN_FG, IN_BORDER, REM, PRI, PRI_FG, BTN="登录"):
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+def p_register(L, IN_BG, IN_FG, IN_BORDER, PRI, PRI_FG, ACC):
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+def p_card(L, IN_BG, IN_FG, IN_BORDER, PRI, PRI_FG):
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+def p_reset(L, IN_BG, IN_FG, IN_BORDER, PRI, PRI_FG, ACC):
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+
+def p_overlays(L, IN_BG, IN_FG, IN_BD, PRI, PRI_FG, MUTED):
+ """公告 / 更新 / 设备超限 三个覆盖面板:和四个 tab 面板同级,显示时先隐藏它们。"""
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+'''
+
+def footer(L, LINK, dev_prefix="设备"):
+ return f'''
+'''
+
+# ------------------------- 皮肤 1:dark(下划线 tab) -------------------------
+def skin_dark():
+ T = dict(BG="#FF141418", TITLE_BG="#FF1D1D24", TITLE="#FFF0F0F4", CLOSE="#FF9A9AA6",
+ TAB_ACT="#FF4EA3E8", TAB_IDLE="#FF9A9AA6", L="#FFB4B4BE",
+ IN_BG="#FF2A2A33", IN_FG="#FFF4F4F8", IN_BD="#FF474755", REM="#FFB4B4BE",
+ PRI="#FF146FB8", PRI_FG="#FFFFFFFF", ACC="#FF2F6E4E", DEV="#FF5C5C68")
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{p_login(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['REM'], T['PRI'], T['PRI_FG'])}
+{p_register(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_card(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'])}
+{p_reset(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_overlays(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['DEV'])}
+{footer(T['DEV'], T['TAB_ACT'])}
+
+
+'''
+
+# ------------------------- 皮肤 2:light(分段按钮 tab) -------------------------
+def skin_light():
+ T = dict(BG="#FFFAFAFC", TITLE="#FF1F1F24", CLOSE="#FF6B6B75", L="#FF4B5563",
+ IN_BG="#FFF1F3F7", IN_FG="#FF1F2430", IN_BD="#FFC3CBD8", REM="#FF4B5563",
+ PRI="#FF1B6FD6", PRI_FG="#FFFFFFFF", ACC="#FF128A5B", SEG_ACT="#FF1B6FD6",
+ SEG_IDLE="#FFEBEFF6", SEG_ACT_FG="#FFFFFFFF", SEG_IDLE_FG="#FF5B6270", DEV="#FF8A8F99")
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{p_login(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['REM'], T['PRI'], T['PRI_FG'])}
+{p_register(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_card(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'])}
+{p_reset(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_overlays(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['DEV'])}
+{footer(T['DEV'], T['PRI'])}
+
+
+'''
+
+# ------------------------- 皮肤 3:split(左品牌栏 + 右侧文字 tab) -------------------------
+def skin_split():
+ T = dict(BG="#FF12151A", SIDE="#FF1A2230", ACT="#FF4CC2FF", IDLE="#FF97A5B4", L="#FF8794A3",
+ IN_BG="#FF1A1F27", IN_FG="#FFF2F6FA", IN_BD="#FF2E343D", PRI="#FF2C7BE5",
+ PRI_FG="#FFFFFFFF", ACC="#FF2B6A50", DEV="#FF7E8B99")
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{p_login(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['L'], T['PRI'], T['PRI_FG'])}
+{p_register(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_card(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'])}
+{p_reset(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_overlays(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['DEV'])}
+{footer(T['DEV'], T['ACT'])}
+
+
+
+'''
+
+# ------------------------- 皮肤 4:card(顶部色条 + 卡片内段按钮) -------------------------
+def skin_card():
+ T = dict(BG="#FFF5F6F9", BAR="#FF3B2BD6", L="#FF4B5563", IN_BG="#FFFFFFFF", IN_FG="#FF1F2430",
+ IN_BD="#FFC9D1DC", PRI="#FF3B2BD6", PRI_FG="#FFFFFFFF", ACC="#FF128A5B",
+ SEG_IDLE="#FFE8E6FF", SEG_IDLE_FG="#FF5B56A8", DEV="#FF8A8F99")
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{footer(T['DEV'], T['PRI'])}
+
+
+
+
+
+{p_login(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['L'], T['PRI'], T['PRI_FG'])}
+{p_register(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_card(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'])}
+{p_reset(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_overlays(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['DEV'])}
+
+
+
+'''
+
+# ------------------------- 皮肤 5:industrial(标题栏内 tab) -------------------------
+def skin_industrial():
+ T = dict(BG="#FF0A1520", BAR="#FF10304C", ACT="#FF1A5A8C", L="#FF9FC0D8",
+ IN_BG="#FF14304A", IN_FG="#FFEAF6FF", IN_BD="#FF23567F", PRI="#FF1F6FB2",
+ PRI_FG="#FFFFFFFF", ACC="#FF1B4A3C", DEV="#FF5F89A6")
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{p_login(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['L'], T['PRI'], T['PRI_FG'])}
+{p_register(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_card(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'])}
+{p_reset(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_overlays(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['DEV'])}
+{footer(T['DEV'], T['PRI'])}
+
+
+'''
+
+# ------------------------- 皮肤 6:terminal(命令式 tab) -------------------------
+def skin_terminal():
+ T = dict(BG="#FF0B0F0C", BAR="#FF101710", ACT="#FF7FE39B", L="#FF7FAE90",
+ IN_BG="#FF16211A", IN_FG="#FFD7F5DF", IN_BD="#FF2B3A2D", PRI="#FF1B7A4E",
+ PRI_FG="#FFFFFFFF", ACC="#FF234A33", DEV="#FF6F9E80")
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{p_login(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['L'], T['PRI'], T['PRI_FG'], "[ 执行登录 ]")}
+{p_register(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_card(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'])}
+{p_reset(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_overlays(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['DEV'])}
+{footer(T['DEV'], T['ACT'])}
+
+
+'''
+
+# ------------------------- 皮肤 7:compact(左列竖排 tab) -------------------------
+def skin_compact():
+ T = dict(BG="#FF11151A", BAR="#FF161C22", ACT="#FF2E9E6B", L="#FF95A7B8",
+ IN_BG="#FF1B232B", IN_FG="#FFFFFFFF", IN_BD="#FF32404E", PRI="#FF2E9E6B",
+ PRI_FG="#FFFFFFFF", ACC="#FF234A33", SEL="#FF1C6142", DEV="#FF8698A8")
+ return f'''
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{footer(T['DEV'], T['ACT'])}
+
+
+
+
+
+{p_login(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['L'], T['PRI'], T['PRI_FG'])}
+{p_register(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_card(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'])}
+{p_reset(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['ACC'])}
+{p_overlays(T['L'], T['IN_BG'], T['IN_FG'], T['IN_BD'], T['PRI'], T['PRI_FG'], T['DEV'])}
+
+
+
+'''
+
+SKINS = [("dark", skin_dark(), 470, 436), ("light", skin_light(), 470, 436),
+ ("split", skin_split(), 680, 452), ("card", skin_card(), 720, 460),
+ ("industrial", skin_industrial(), 600, 452), ("terminal", skin_terminal(), 620, 446),
+ ("compact", skin_compact(), 760, 392)]
+
+with io.open(OUT, "w", encoding="utf-8") as f:
+ f.write("// 由 gen_skins_v4.py 生成,不要手改\n#pragma once\n\n")
+ for name, xml, w, h in SKINS:
+ f.write(f'static const char *kSkin_{name} = R"SKIN({xml})SKIN";\n\n')
+ f.write('struct SkinDef { const char *name; const char *xml; int w, h; };\n')
+ f.write('static const SkinDef kSkins[] = {\n')
+ for name, xml, w, h in SKINS:
+ f.write(f' {{ "{name}", kSkin_{name}, {w}, {h} }},\n')
+ f.write(' { NULL, NULL, 0, 0 }\n};\n')
+
+print("skins_v4.h 已生成(4 tab × 7 皮肤)")
+for name, xml, w, h in SKINS:
+ print(f" {name:11s} {w}x{h} {len(xml)} 字节")
diff --git a/shell/duilib/skins_v4.h b/shell/duilib/skins_v4.h
index 5013a73..af90372 100644
--- a/shell/duilib/skins_v4.h
+++ b/shell/duilib/skins_v4.h
@@ -1,4 +1,8 @@
-// 由 gen_skins_v4.py 生成,不要手改
+// 皮肤源文件 —— 直接改这里。
+// 历史上这个文件由 gen_skins_v4.py 生成,但那个脚本的最终版已经丢了,
+// scripts/legacy/ 里的副本停在很早的版本(比本文件少 112 个 Button),
+// 用它重新生成会丢改动。改完重新编译壳并替换 assets 即可,
+// 见 scripts/legacy/README.md
#pragma once
static const char *kSkin_dark = R"SKIN(
@@ -33,10 +37,10 @@ static const char *kSkin_dark = R"SKIN(
-
+
-
+
@@ -48,23 +52,23 @@ static const char *kSkin_dark = R"SKIN(
-
+
-
+
-
+
-
+
-
+
@@ -72,10 +76,10 @@ static const char *kSkin_dark = R"SKIN(
-
+
-
+
@@ -85,20 +89,20 @@ static const char *kSkin_dark = R"SKIN(
-
+
-
+
-
+
-
+
@@ -136,7 +140,7 @@ static const char *kSkin_dark = R"SKIN(
-
+
@@ -189,7 +193,7 @@ static const char *kSkin_dark = R"SKIN(
-
+
@@ -231,10 +235,10 @@ static const char *kSkin_light = R"SKIN(
-
+
-
+
@@ -246,23 +250,23 @@ static const char *kSkin_light = R"SKIN(
-
+
-
+
-
+
-
+
-
+
@@ -270,10 +274,10 @@ static const char *kSkin_light = R"SKIN(
-
+
-
+
@@ -283,20 +287,20 @@ static const char *kSkin_light = R"SKIN(
-
+
-
+
-
+
-
+
@@ -334,7 +338,7 @@ static const char *kSkin_light = R"SKIN(
-
+
@@ -387,7 +391,7 @@ static const char *kSkin_light = R"SKIN(
-
+
@@ -437,10 +441,10 @@ static const char *kSkin_split = R"SKIN(
-
+
-
+
@@ -452,23 +456,23 @@ static const char *kSkin_split = R"SKIN(
-
+
-
+
-
+
-
+
-
+
@@ -476,10 +480,10 @@ static const char *kSkin_split = R"SKIN(
-
+
-
+
@@ -489,20 +493,20 @@ static const char *kSkin_split = R"SKIN(
-
+
-
+
-
+
-
+
@@ -540,7 +544,7 @@ static const char *kSkin_split = R"SKIN(
-
+
@@ -593,7 +597,7 @@ static const char *kSkin_split = R"SKIN(
-
+
@@ -648,10 +652,10 @@ static const char *kSkin_card = R"SKIN(
-
+
-
+
@@ -663,23 +667,23 @@ static const char *kSkin_card = R"SKIN(
-
+
-
+
-
+
-
+
-
+
@@ -687,10 +691,10 @@ static const char *kSkin_card = R"SKIN(
-
+
-
+
@@ -700,20 +704,20 @@ static const char *kSkin_card = R"SKIN(
-
+
-
+
-
+
-
+
@@ -751,7 +755,7 @@ static const char *kSkin_card = R"SKIN(
-
+
@@ -804,7 +808,7 @@ static const char *kSkin_card = R"SKIN(
-
+
@@ -839,10 +843,10 @@ static const char *kSkin_industrial = R"SKIN(
-
+
-
+
@@ -854,23 +858,23 @@ static const char *kSkin_industrial = R"SKIN(
-
+
-
+
-
+
-
+
-
+
@@ -878,10 +882,10 @@ static const char *kSkin_industrial = R"SKIN(
-
+
-
+
@@ -891,20 +895,20 @@ static const char *kSkin_industrial = R"SKIN(
-
+
-
+
-
+
-
+
@@ -942,7 +946,7 @@ static const char *kSkin_industrial = R"SKIN(
-
+
@@ -995,7 +999,7 @@ static const char *kSkin_industrial = R"SKIN(
-
+
@@ -1034,10 +1038,10 @@ static const char *kSkin_terminal = R"SKIN(
-
+
-
+
@@ -1049,23 +1053,23 @@ static const char *kSkin_terminal = R"SKIN(
-
+
-
+
-
+
-
+
-
+
@@ -1073,10 +1077,10 @@ static const char *kSkin_terminal = R"SKIN(
-
+
-
+
@@ -1086,20 +1090,20 @@ static const char *kSkin_terminal = R"SKIN(
-
+
-
+
-
+
-
+
@@ -1137,7 +1141,7 @@ static const char *kSkin_terminal = R"SKIN(
-
+
@@ -1190,7 +1194,7 @@ static const char *kSkin_terminal = R"SKIN(
-
+
@@ -1238,10 +1242,10 @@ static const char *kSkin_compact = R"SKIN(
-
+
-
+
@@ -1253,23 +1257,23 @@ static const char *kSkin_compact = R"SKIN(
-
+
-
+
-
+
-
+
-
+
@@ -1277,10 +1281,10 @@ static const char *kSkin_compact = R"SKIN(
-
+
-
+
@@ -1290,20 +1294,20 @@ static const char *kSkin_compact = R"SKIN(
-
+
-
+
-
+
-
+
@@ -1341,7 +1345,7 @@ static const char *kSkin_compact = R"SKIN(
-
+
@@ -1394,7 +1398,7 @@ static const char *kSkin_compact = R"SKIN(
-
+