diff --git a/backend/internal/protect/assets/shell32_dui.bin b/backend/internal/protect/assets/shell32_dui.bin index 31e599e..689efff 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 fdde378..66fb1cc 100755 Binary files a/backend/internal/protect/assets/shell64_dui.bin and b/backend/internal/protect/assets/shell64_dui.bin differ diff --git a/backend/internal/protect/protect.go b/backend/internal/protect/protect.go index 3258236..b9886da 100644 --- a/backend/internal/protect/protect.go +++ b/backend/internal/protect/protect.go @@ -78,19 +78,20 @@ func Assets(arch string) (blob, dll []byte, err error) { // AssetsThemed 按主题取壳。DuiLib 壳 x64 / x86 各有一份构建 // (shell64_dui.bin / shell32_dui.bin),两边的皮肤完全一致。 +// +// 注意:classic 现在也走 DuiLib 壳。原来它指向 shell64.bin / shell32.bin +// 那套 Direct2D 壳,但那套壳里没有 login_mode / FetchAppInfo 逻辑, +// 界面永远固定成「账号+密码+注册」,跟着应用配置切卡密登录、隐藏注册、 +// 控制充值 tab 全都不生效。现在已经用 DuiLib 按原配色(VS Code 暗色系) +// 重做了一套 classic 皮肤,走和其他 7 套一样的链路。 +// 老产物(.vfy 节)不受影响,HasVfy 仍然认 .vfy。 func AssetsThemed(arch, theme string) (blob, dll []byte, err error) { var bp, dp string switch arch { case "x64": - bp, dp = "assets/blob64.bin", "assets/shell64.bin" - if theme != "" && theme != "classic" { - dp = "assets/shell64_dui.bin" - } + bp, dp = "assets/blob64.bin", "assets/shell64_dui.bin" case "x86": - bp, dp = "assets/blob32.bin", "assets/shell32.bin" - if theme != "" && theme != "classic" { - dp = "assets/shell32_dui.bin" - } + bp, dp = "assets/blob32.bin", "assets/shell32_dui.bin" default: return nil, nil, fmt.Errorf("不支持的架构: %s", arch) } diff --git a/shell/duilib/skins_v4.h b/shell/duilib/skins_v4.h index af90372..67fb40a 100644 --- a/shell/duilib/skins_v4.h +++ b/shell/duilib/skins_v4.h @@ -212,6 +212,216 @@ static const char *kSkin_dark = R"SKIN( )SKIN"; +// classic 的 DuiLib 实现:配色照搬原 Direct2D 壳(VS Code 暗色系: +// #1E1E1E 卡片 / #252527 标题栏 / #0E639C 主色按钮 / #0078D4 聚焦)。 +// 老 Direct2D 壳不支持按配置切卡密登录,用它重做后 classic 也能跟随应用设置。 +static const char *kSkin_classic = R"SKIN( + + + +