fix(shell): 输入框补回淡边框,skins_v4.h 转为源文件
1) 输入框现在是无边框纯色块,视觉上不像可交互区域。
给 7 套皮肤全部 105 个 Edit 显式写上 bordersize="1",
dark 皮肤的边框色从 #FF474755(71,71,85,压在 #2A2A33 上像黑边)
提亮到 #FF565672(86,86,114)—— 看得见是边框,但不刺眼。
注意这次是皮肤里真的有了边框,CaptureBorders 会如实记下 1,
聚焦 2px / 失焦还原 1px,不会再出现上次那种「凭空多一圈」的问题。
2) skins_v4.h 的来路理清
文件头原来写着「由 gen_skins_v4.py 生成,不要手改」,但那个脚本的
最终版已经丢了。现有副本(/tmp/skingen,tmpfs,重启即失)停在 11-23,
生成出来比仓库文件少 112 个 Button、少了 lblTitle —— 是更早的一版,
用它重生成会丢掉设备管理页/公告页之后的所有 UI 改动。
处理:
- skins_v4.h 头部改成「皮肤源文件,直接改这里」
- 三个历史脚本归档到 shell/duilib/scripts/legacy/*.obsolete
- 附 selector/legacy/README.md 说明为什么不能用、改完怎么编译替换
(/tmp 里的脚本本身没进版本控制,这次是从内存盘抢救出来的,
否则下次重启就彻底没了)
实测(wine 截图 + 视觉核对):输入框呈现「淡雅克制的灰色边框」,
可明确识别为输入区域;关闭按钮 × 位置大小均合适,无其他硬伤。
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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 没编。
|
||||
@@ -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 version="1.0" encoding="UTF-8"?>
|
||||
<Global>
|
||||
<Font id="f12" name="Microsoft YaHei UI" size="12" default="true"/>
|
||||
<Font id="f13" name="Microsoft YaHei UI" size="13"/>
|
||||
<Font id="f14" name="Microsoft YaHei UI" size="14"/>
|
||||
<Font id="f18" name="Microsoft YaHei UI" size="18" bold="true"/>
|
||||
<Font id="f22" name="Microsoft YaHei UI" size="22" bold="true"/>
|
||||
<TextColor name="white" value="#FFFFFFFF"/>
|
||||
<TextColor name="gray" value="#FF8A8A8A"/>
|
||||
</Global>
|
||||
'''
|
||||
|
||||
# ---------------- 纯 XML 皮肤(无图片) ----------------
|
||||
DARK = '''<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Window size="470,330" caption="0,0,-1,40" mininfo="470,330" bkcolor="#FF1B1B1B">
|
||||
<VBox bkcolor="#FF1B1B1B">
|
||||
<HBox height="40" bkcolor="#FF252526">
|
||||
<Label name="lblTitle" text="软件授权验证" textcolor="#FFE8E8E8" font="f14" padding="16,0,0,0" valign="center"/>
|
||||
<Control />
|
||||
<Button name="btnClose" width="40" height="40" text="X" textcolor="#FFCCCCCC" bkcolor="#FF252526" font="f14"/>
|
||||
</HBox>
|
||||
<VBox padding="26,18,26,16">
|
||||
<Label name="lblApp" height="26" text="演示程序" textcolor="#FF7FB8E0" font="f18" valign="center"/>
|
||||
<Label height="22" text="请输入卡密激活本机" textcolor="#FF9A9A9A" font="f12" valign="center"/>
|
||||
<Control height="10"/>
|
||||
<RichEdit name="editCard" height="38" bkcolor="#FF2D2D30" textcolor="#FFFFFFFF" font="f13" padding="10,0,0,0" valign="center"/>
|
||||
<Control height="14"/>
|
||||
<Button name="btnLogin" height="40" text="登 录" textcolor="#FFFFFFFF" bkcolor="#FF0E639C" font="f14"/>
|
||||
<Label name="lblTip" height="22" margin="0,12,0,0" text="设备指纹:" textcolor="#FF8A8A8A" font="f12" valign="center"/>
|
||||
</VBox>
|
||||
</VBox>
|
||||
</Window>
|
||||
'''
|
||||
|
||||
LIGHT = '''<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Window size="470,330" caption="0,0,-1,40" mininfo="470,330" bkcolor="#FFF7F7F7">
|
||||
<VBox bkcolor="#FFF7F7F7">
|
||||
<HBox height="40" bkcolor="#FFFFFFFF">
|
||||
<Label name="lblTitle" text="软件授权验证" textcolor="#FF1F1F1F" font="f14" padding="16,0,0,0" valign="center"/>
|
||||
<Control />
|
||||
<Button name="btnClose" width="40" height="40" text="X" textcolor="#FF666666" bkcolor="#FFFFFFFF" font="f14"/>
|
||||
</HBox>
|
||||
<VBox padding="26,18,26,16">
|
||||
<Label name="lblApp" height="26" text="演示程序" textcolor="#FF0067B8" font="f18" valign="center"/>
|
||||
<Label height="22" text="请输入卡密激活本机" textcolor="#FF666666" font="f12" valign="center"/>
|
||||
<Control height="10"/>
|
||||
<RichEdit name="editCard" height="38" bkcolor="#FFFFFFFF" textcolor="#FF1F1F1F" font="f13" padding="10,0,0,0" valign="center"/>
|
||||
<Control height="14"/>
|
||||
<Button name="btnLogin" height="40" text="登录" textcolor="#FFFFFFFF" bkcolor="#FF0078D4" font="f14"/>
|
||||
<Label name="lblTip" height="22" margin="0,12,0,0" text="设备指纹:" textcolor="#FF8A8A8A" font="f12" valign="center"/>
|
||||
</VBox>
|
||||
</VBox>
|
||||
</Window>
|
||||
'''
|
||||
|
||||
INDUSTRIAL = '''<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Window size="520,350" caption="0,0,-1,44" mininfo="520,350" bkcolor="#FF0A1622">
|
||||
<VBox bkcolor="#FF0A1622">
|
||||
<HBox height="44" bkcolor="#FF113250">
|
||||
<Label name="lblTitle" text="DEVICE AUTHORIZATION" textcolor="#FF7FD1FF" font="f14" padding="16,0,0,0" valign="center"/>
|
||||
<Control />
|
||||
<Button name="btnClose" width="44" height="44" text="X" textcolor="#FFBEE3FF" bkcolor="#FF113250" font="f14"/>
|
||||
</HBox>
|
||||
<VBox padding="28,20,28,18">
|
||||
<Label name="lblApp" height="26" text="演示程序 / DEVICE LICENSING" textcolor="#FF6FA8C8" font="f18" valign="center"/>
|
||||
<Control height="12"/>
|
||||
<HBox height="42" bkcolor="#FF0E2438">
|
||||
<Label width="64" text="卡密" textcolor="#FF8FC4E6" font="f13" padding="12,0,0,0" valign="center"/>
|
||||
<RichEdit name="editCard" textcolor="#FFFFFFFF" bkcolor="#FF0E2438" font="f13" valign="center"/>
|
||||
</HBox>
|
||||
<Control height="16"/>
|
||||
<HBox height="44">
|
||||
<Button name="btnLogin" text="激活本机" textcolor="#FFFFFFFF" bkcolor="#FF1F6FB2" font="f14"/>
|
||||
<Control width="12"/>
|
||||
<Button name="btnQuit" text="退出" textcolor="#FFBEE3FF" bkcolor="#FF22384F" font="f14"/>
|
||||
</HBox>
|
||||
<Label name="lblTip" height="22" margin="0,12,0,0" text="设备指纹:" textcolor="#FF5F89A6" font="f12" valign="center"/>
|
||||
</VBox>
|
||||
</VBox>
|
||||
</Window>
|
||||
'''
|
||||
|
||||
# ---------------- 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 = ('<Control width="10"/>\n <Button name="btnQuit" width="120" height="44" text="退出" '
|
||||
'textcolor="#FFD8D8D8" bkcolor="#33FFFFFF" font="f13"/>') if has_quit else ""
|
||||
return f'''<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Window size="520,356" caption="0,0,520,46" mininfo="520,356" bktrans="true" bkimage="file='{theme}_bg.png'">
|
||||
<VBox>
|
||||
<HBox height="46">
|
||||
<Label name="lblTitle" text="{title}" textcolor="{title_color}" font="{title_font}" padding="20,0,0,0" valign="center"/>
|
||||
<Control />
|
||||
<Button name="btnClose" width="34" height="22" margin="0,12,16,0" bkimage="file='{theme}_close.png'"/>
|
||||
</HBox>
|
||||
<VBox padding="34,12,34,20">
|
||||
<Label name="lblApp" height="28" text="演示程序" textcolor="{app_color}" font="f18" valign="center"/>
|
||||
<Label height="20" text="{prompt}" textcolor="{tip_color}" font="f12" valign="center"/>
|
||||
<Control height="12"/>
|
||||
<RichEdit name="editCard" height="42" bkimage="file='{theme}_edit.png'" textcolor="#FFFFFFFF" font="f13" padding="12,0,0,0" valign="center"/>
|
||||
<Control height="16"/>
|
||||
<HBox height="44">
|
||||
<Button name="btnLogin" width="240" height="44" text="{btn_text}" textcolor="{btn_color}" font="f14"
|
||||
bkimage="file='{theme}_btn.png'" hotbkimage="file='{theme}_btn_hot.png'" pushedbkimage="file='{theme}_btn_down.png'"/>
|
||||
{quit_btn}
|
||||
</HBox>
|
||||
<Label name="lblTip" height="22" margin="0,14,0,0" text="设备指纹:" textcolor="{tip_color}" font="f12" valign="center"/>
|
||||
</VBox>
|
||||
</VBox>
|
||||
</Window>
|
||||
'''
|
||||
|
||||
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")
|
||||
@@ -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''' <HorizontalLayout height="{height}" bkcolor="{bg}">
|
||||
<Label text="软件授权验证" textcolor="{title_color}" font="1" inset="{inset},0,0,0" />
|
||||
<Control />
|
||||
<Button name="btnClose" text="X" width="{close_w}" height="{height}" textcolor="{btn_color}"
|
||||
bkcolor="{bg}" hotbkcolor="#33FFFFFF" pushedbkcolor="#66FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
'''
|
||||
|
||||
def tab_underline(idle, active, bg, y=0):
|
||||
"""下划线式 tab:当前项下方一条主色线"""
|
||||
return f''' <HorizontalLayout height="42" bkcolor="{bg}">
|
||||
<VerticalLayout width="86">
|
||||
<Button name="tabLogin" text="登录" textcolor="{active}" bkcolor="#00000000" height="40" />
|
||||
<Control height="2" bkcolor="{active}" />
|
||||
</VerticalLayout>
|
||||
<VerticalLayout width="86">
|
||||
<Button name="tabRegister" text="注册" textcolor="{idle}" bkcolor="#00000000" height="40" />
|
||||
<Control height="2" bkcolor="#00000000" name="tabRegLine" />
|
||||
</VerticalLayout>
|
||||
</HorizontalLayout>
|
||||
'''
|
||||
|
||||
def login_fields(label, inp_bg, inp_fg, inp_native, inp_border, remember_color, primary, btn_text_color, hint, tab_hint=""):
|
||||
return f''' <Label text="账号或卡密" textcolor="{label}" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="{inp_bg}" nativebkcolor="{inp_native}" textcolor="{inp_fg}" bordercolor="{inp_border}" inset="10,0,0,0" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="{label}" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="{inp_bg}" nativebkcolor="{inp_native}" textcolor="{inp_fg}" bordercolor="{inp_border}" inset="10,0,0,0" password="true" />
|
||||
<Control height="10" />
|
||||
<HorizontalLayout height="22">
|
||||
<Label name="chkBox" width="14" height="14" bkcolor="#00000000" bordercolor="{remember_color}" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnRemember" text="记住账号" textcolor="{remember_color}" bkcolor="#00000000" width="78" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Button name="btnLogin" text="{hint}" height="44" bkcolor="{primary}" textcolor="{btn_text_color}" font="1" />
|
||||
<Label name="lblTip" text="" textcolor="#FFE08A8A" height="24" inset="0,6,0,0" />
|
||||
'''
|
||||
|
||||
def reg_fields(label, inp_bg, inp_fg, inp_native, inp_border, primary, btn_text_color, accent):
|
||||
return f''' <Label text="用户名" textcolor="{label}" height="18" />
|
||||
<Edit name="regUser" height="34" bkcolor="{inp_bg}" nativebkcolor="{inp_native}" textcolor="{inp_fg}" bordercolor="{inp_border}" inset="10,0,0,0" />
|
||||
<Control height="6" />
|
||||
<Label text="邮箱" textcolor="{label}" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="{inp_bg}" nativebkcolor="{inp_native}" textcolor="{inp_fg}" bordercolor="{inp_border}" inset="10,0,0,0" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="34" bkcolor="{accent}" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="6" />
|
||||
<Label text="邮箱验证码" textcolor="{label}" height="18" />
|
||||
<Edit name="regCode" height="34" bkcolor="{inp_bg}" nativebkcolor="{inp_native}" textcolor="{inp_fg}" bordercolor="{inp_border}" inset="10,0,0,0" />
|
||||
<Control height="6" />
|
||||
<Label text="密码" textcolor="{label}" height="18" />
|
||||
<Edit name="regPass" height="34" bkcolor="{inp_bg}" nativebkcolor="{inp_native}" textcolor="{inp_fg}" bordercolor="{inp_border}" inset="10,0,0,0" password="true" />
|
||||
<Control height="6" />
|
||||
<Label text="确认密码" textcolor="{label}" height="18" />
|
||||
<Edit name="regPass2" height="34" bkcolor="{inp_bg}" nativebkcolor="{inp_native}" textcolor="{inp_fg}" bordercolor="{inp_border}" inset="10,0,0,0" password="true" />
|
||||
<Control height="12" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="{primary}" textcolor="{btn_text_color}" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="24" inset="0,6,0,0" />
|
||||
'''
|
||||
|
||||
def footer(dev_color, link_color):
|
||||
return f''' <Control height="6" />
|
||||
<Label name="lblDevice" text="设备" textcolor="{dev_color}" height="18" />
|
||||
<HorizontalLayout height="24">
|
||||
<Button name="btnLinkCard" text="卡密充值" width="96" textcolor="{link_color}" bkcolor="#00000000" />
|
||||
<Button name="btnLinkForgot" text="忘记密码" width="96" textcolor="{link_color}" bkcolor="#00000000" />
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
'''
|
||||
|
||||
# ---------------- 1. dark:下划线 tab,竖排 ----------------
|
||||
DARK = f'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="452,548" caption="0,0,-1,44" mininfo="452,548" bkcolor="#FF141418">
|
||||
<VerticalLayout bkcolor="#FF141418" bordercolor="#FF32323A" bordersize="1">
|
||||
{titlebar("#FF1D1D24", "#FFF0F0F4", "#FF9A9AA6")}
|
||||
{tab_underline("#FF85858F", "#FF4EA3E8", "#FF1D1D24")}
|
||||
<VerticalLayout inset="26,14,26,14">
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FF6FB6E8" height="26" font="1" />
|
||||
<Control height="6" />
|
||||
<VerticalLayout name="panelLogin" height="auto">
|
||||
{login_fields("#FFB4B4BE", "#FF2A2A33", "#FFF4F4F8", "#FF2A2A33", "#FF474755", "#FFB4B4BE", "#FF146FB8", "#FFFFFFFF", "登 录")}
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelRegister" height="auto" visible="false">
|
||||
{reg_fields("#FFB4B4BE", "#FF2A2A33", "#FFF4F4F8", "#FF2A2A33", "#FF474755", "#FF1F8A5B", "#FFFFFFFF", "#FF2F6E4E")}
|
||||
</VerticalLayout>
|
||||
{footer("#FF5C5C68", "#FF7FA5CC")}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ---------------- 2. light:分段按钮 tab,竖排 ----------------
|
||||
LIGHT = f'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="452,548" caption="0,0,-1,44" mininfo="452,548" bkcolor="#FFFAFAFC">
|
||||
<VerticalLayout bkcolor="#FFFAFAFC" bordercolor="#FFDCDCE3" bordersize="1">
|
||||
{titlebar("#FFFFFFFF", "#FF1F1F24", "#FF6B6B75")}
|
||||
<HorizontalLayout height="20" />
|
||||
<HorizontalLayout height="42" inset="26,0,26,0">
|
||||
<Button name="tabLogin" text="登录" width="100" height="40" bkcolor="#FF1B6FD6" textcolor="#FFFFFFFF" font="1" />
|
||||
<Control width="8" />
|
||||
<Button name="tabRegister" text="注册" width="100" height="40" bkcolor="#FFEDF0F5" textcolor="#FF5B6270" />
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="26,16,26,14">
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FF1B6FD6" height="26" font="1" />
|
||||
<Control height="6" />
|
||||
<VerticalLayout name="panelLogin" height="auto">
|
||||
{login_fields("#FF4B5563", "#FFF1F3F7", "#FF1F2430", "#FFF1F3F7", "#FFC3CBD8", "#FF4B5563", "#FF1B6FD6", "#FFFFFFFF", "登录")}
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelRegister" height="auto" visible="false">
|
||||
{reg_fields("#FF4B5563", "#FFF1F3F7", "#FF1F2430", "#FFF1F3F7", "#FFC3CBD8", "#FF128A5B", "#FFFFFFFF", "#FFD8EAE0")}
|
||||
</VerticalLayout>
|
||||
{footer("#FF8A8F99", "#FF3B62B8")}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ---------------- 3. split:左品牌栏 + 右 tab ----------------
|
||||
SPLIT = f'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="660,548" caption="0,0,0,0" mininfo="660,548" bkcolor="#FF12151A">
|
||||
<HorizontalLayout bkcolor="#FF12151A" bordercolor="#FF282D35" bordersize="1">
|
||||
<VerticalLayout width="200" bkcolor="#FF1A2230">
|
||||
<HorizontalLayout height="44" inset="24,0,0,0">
|
||||
<Label text="VFY" textcolor="#FF4CC2FF" font="1" />
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="24,4,24,0">
|
||||
<Label text="软件授权" textcolor="#FFC8D3E0" height="28" font="1" />
|
||||
<Label text="SOFTWARE LICENSE" textcolor="#FF63707E" height="20" />
|
||||
<Label text="账号登录后可绑定本机设备" textcolor="#FF4C5A68" height="20" margin="0,14,0,0" />
|
||||
</VerticalLayout>
|
||||
<VerticalLayout />
|
||||
<HorizontalLayout height="28" inset="24,0,24,16">
|
||||
<Label text="v9 · DuiLib" textcolor="#FF4A5764" />
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
<VerticalLayout>
|
||||
<HorizontalLayout height="46" inset="28,0,0,0">
|
||||
<VerticalLayout width="80">
|
||||
<Button name="tabLogin" text="登录" height="44" bkcolor="#00000000" textcolor="#FF4CC2FF" font="1" />
|
||||
<Control height="2" bkcolor="#FF4CC2FF" />
|
||||
</VerticalLayout>
|
||||
<VerticalLayout width="80">
|
||||
<Button name="tabRegister" text="注册" height="44" bkcolor="#00000000" textcolor="#FF7A8794" />
|
||||
<Control name="tabRegLine" height="2" bkcolor="#00000000" />
|
||||
</VerticalLayout>
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="28,8,28,16">
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FFF0F5FA" height="26" font="1" />
|
||||
<Control height="6" />
|
||||
<VerticalLayout name="panelLogin" height="auto">
|
||||
{login_fields("#FF8794A3", "#FF1A1F27", "#FFF2F6FA", "#FF1A1F27", "#FF2E343D", "#FF8794A3", "#FF2C7BE5", "#FFFFFFFF", "登录")}
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelRegister" height="auto" visible="false">
|
||||
{reg_fields("#FF8794A3", "#FF1A1F27", "#FFF2F6FA", "#FF1A1F27", "#FF2E343D", "#FF1F8A5B", "#FFFFFFFF", "#FF2B6A50")}
|
||||
</VerticalLayout>
|
||||
{footer("#FF5E6B78", "#FF6FA8DC")}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</HorizontalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ---------------- 4. card:顶部色条 + 卡片内 tab ----------------
|
||||
CARD = f'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="700,564" caption="0,0,-1,92" mininfo="700,564" bkcolor="#FFF5F6F9">
|
||||
<VerticalLayout bkcolor="#FFF5F6F9" bordercolor="#FFD7DBE3" bordersize="1">
|
||||
<HorizontalLayout height="92" bkcolor="#FF3B2BD6">
|
||||
<VerticalLayout inset="28,16,0,0">
|
||||
<Label text="软件授权验证" textcolor="#FFFFFFFF" font="1" height="34" />
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FFD9D4FF" height="22" />
|
||||
</VerticalLayout>
|
||||
<Control />
|
||||
<Button name="btnClose" text="X" width="46" height="92" textcolor="#FFEDEBFF" bkcolor="#FF3B2BD6" hotbkcolor="#33FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout height="54" inset="28,14,28,0">
|
||||
<Button name="tabLogin" text="登录" width="112" height="38" bkcolor="#FFFFFFFF" textcolor="#FF3B2BD6" font="1" />
|
||||
<Control width="8" />
|
||||
<Button name="tabRegister" text="注册" width="112" height="38" bkcolor="#FFE8E6FF" textcolor="#FF5B56A8" />
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout inset="28,16,28,18">
|
||||
<VerticalLayout width="260">
|
||||
<Label text="账号安全" textcolor="#FF1F2430" height="26" font="1" />
|
||||
<Label text="登录后账号与本机设备绑定," textcolor="#FF4B5563" height="20" />
|
||||
<Label text="超出设备上限时请先下线一台。" textcolor="#FF4B5563" height="20" />
|
||||
<Control height="12" />
|
||||
<Label name="lblDevice" text="设备" textcolor="#FF8A8F99" height="20" />
|
||||
<VerticalLayout />
|
||||
<Button name="btnLinkCard" text="卡密充值" width="96" textcolor="#FF3B2BD6" bkcolor="#00000000" />
|
||||
<Button name="btnLinkForgot" text="忘记密码" width="96" textcolor="#FF3B2BD6" bkcolor="#00000000" />
|
||||
</VerticalLayout>
|
||||
<Control width="28" />
|
||||
<VerticalLayout>
|
||||
<VerticalLayout name="panelLogin" height="auto">
|
||||
{login_fields("#FF4B5563", "#FFFFFFFF", "#FF1F2430", "#FFFFFFFF", "#FFC9D1DC", "#FF4B5563", "#FF3B2BD6", "#FFFFFFFF", "登录")}
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelRegister" height="auto" visible="false">
|
||||
{reg_fields("#FF4B5563", "#FFF1F3F7", "#FF1F2430", "#FFF1F3F7", "#FFC3CBD8", "#FF128A5B", "#FFFFFFFF", "#FFD8EAE0")}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ---------------- 5. industrial:标题栏内 tab ----------------
|
||||
INDUSTRIAL = f'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="580,548" caption="0,0,-1,46" mininfo="580,548" bkcolor="#FF0A1520">
|
||||
<VerticalLayout bkcolor="#FF0A1520" bordercolor="#FF1F4E79" bordersize="1">
|
||||
<HorizontalLayout height="46" bkcolor="#FF10304C">
|
||||
<Label text="AUTHORIZATION" textcolor="#FF7FD1FF" font="1" inset="18,0,0,0" />
|
||||
<Control />
|
||||
<Button name="tabLogin" text="LOGIN" width="80" height="46" bkcolor="#FF1A5A8C" textcolor="#FFFFFFFF" />
|
||||
<Button name="tabRegister" text="REGISTER" width="96" height="46" bkcolor="#00000000" textcolor="#FF9FC8E6" />
|
||||
<Button name="btnClose" text="X" width="46" height="46" textcolor="#FFBEE3FF" bkcolor="#FF10304C" hotbkcolor="#33FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="24,16,24,16">
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FF8FC4E6" height="26" font="1" />
|
||||
<Control height="6" />
|
||||
<VerticalLayout name="panelLogin" height="auto">
|
||||
{login_fields("#FF9FC0D8", "#FF14304A", "#FFEAF6FF", "#FF14304A", "#FF23567F", "#FF9FC0D8", "#FF1F6FB2", "#FFFFFFFF", "登录")}
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelRegister" height="auto" visible="false">
|
||||
{reg_fields("#FF9FC0D8", "#FF14304A", "#FFEAF6FF", "#FF14304A", "#FF23567F", "#FF1F7A5E", "#FFFFFFFF", "#FF1B4A3C")}
|
||||
</VerticalLayout>
|
||||
{footer("#FF5F89A6", "#FF6FA8C8")}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ---------------- 6. terminal:命令式 tab ----------------
|
||||
TERMINAL = f'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="600,548" caption="0,0,-1,38" mininfo="600,548" bkcolor="#FF0B0F0C">
|
||||
<VerticalLayout bkcolor="#FF0B0F0C" bordercolor="#FF2B3A2D" bordersize="1">
|
||||
<HorizontalLayout height="38" bkcolor="#FF101710">
|
||||
<Label text="vfy@local:~$" textcolor="#FF54C97A" inset="14,0,0,0" />
|
||||
<Control />
|
||||
<Button name="btnClose" text="X" width="38" height="38" textcolor="#FF7FB08C" bkcolor="#FF101710" hotbkcolor="#33FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout height="34" bkcolor="#FF0E150F">
|
||||
<Button name="tabLogin" text="[ login ]" width="96" height="34" bkcolor="#00000000" textcolor="#FF7FE39B" />
|
||||
<Button name="tabRegister" text="[ register ]" width="108" height="34" bkcolor="#00000000" textcolor="#FF4E7A5C" />
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="16,10,16,12">
|
||||
<Label name="lblApp" text="# 演示程序" textcolor="#FF7FE39B" height="24" />
|
||||
<Control height="6" />
|
||||
<VerticalLayout name="panelLogin" height="auto">
|
||||
{login_fields("#FF5E8A6C", "#FF16211A", "#FFD7F5DF", "#FF16211A", "#FF2B3A2D", "#FF5E8A6C", "#FF1B7A4E", "#FFFFFFFF", "[ 执行登录 ]")}
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelRegister" height="auto" visible="false">
|
||||
{reg_fields("#FF5E8A6C", "#FF16211A", "#FFD7F5DF", "#FF16211A", "#FF2B3A2D", "#FF1B7A4E", "#FFFFFFFF", "#FF234A33")}
|
||||
</VerticalLayout>
|
||||
{footer("#FF4E7A5C", "#FF6FA08A")}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ---------------- 7. compact:横向紧凑,tab 在左列 ----------------
|
||||
COMPACT = f'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="760,206" caption="0,0,-1,38" mininfo="760,206" bkcolor="#FF11151A">
|
||||
<VerticalLayout bkcolor="#FF11151A" bordercolor="#FF2A3440" bordersize="1">
|
||||
<HorizontalLayout height="38" bkcolor="#FF161C22">
|
||||
<Label text="账号" textcolor="#FFA8BCCE" inset="16,0,0,0" />
|
||||
<Control />
|
||||
<Button name="btnClose" text="X" width="38" height="38" textcolor="#FFA8BCCE" bkcolor="#FF161C22" hotbkcolor="#33FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout inset="16,12,16,10">
|
||||
<VerticalLayout width="200">
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FFEAF2FA" height="26" font="1" />
|
||||
<Label name="lblDevice" text="设备" textcolor="#FF6B7C8C" height="20" />
|
||||
<Control height="12" />
|
||||
<Button name="tabLogin" text="登录" width="90" height="32" bkcolor="#FF2E9E6B" textcolor="#FFFFFFFF" />
|
||||
<Control height="6" />
|
||||
<Button name="tabRegister" text="注册" width="90" height="32" bkcolor="#FF1B232B" textcolor="#FF9FB3C8" />
|
||||
</VerticalLayout>
|
||||
<Control width="16" />
|
||||
<VerticalLayout>
|
||||
<VerticalLayout name="panelLogin" height="auto">
|
||||
<HorizontalLayout height="40">
|
||||
<HorizontalLayout width="214" bkcolor="#FF1B232B">
|
||||
<Label text="账号" width="46" textcolor="#FF7E90A2" inset="10,0,0,0" />
|
||||
<Edit name="editUser" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" inset="0,0,0,0" />
|
||||
</HorizontalLayout>
|
||||
<Control width="10" />
|
||||
<HorizontalLayout width="214" bkcolor="#FF1B232B">
|
||||
<Label text="密码" width="46" textcolor="#FF7E90A2" inset="10,0,0,0" />
|
||||
<Edit name="editPass" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" inset="0,0,0,0" password="true" />
|
||||
</HorizontalLayout>
|
||||
<Control width="10" />
|
||||
<Button name="btnLogin" text="登录" width="110" height="40" bkcolor="#FF2E9E6B" textcolor="#FFFFFFFF" font="1" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout height="26">
|
||||
<Label name="chkBox" width="14" height="14" bkcolor="#00000000" bordercolor="#FF6B7C8C" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnRemember" text="记住账号" textcolor="#FF6B7C8C" bkcolor="#00000000" width="120" />
|
||||
<Label name="lblTip" text="" textcolor="#FFD98A8A" />
|
||||
</HorizontalLayout>
|
||||
<Control height="6" />
|
||||
<HorizontalLayout height="24">
|
||||
<Button name="btnLinkCard" text="卡密充值" width="96" textcolor="#FF7FA5CC" bkcolor="#00000000" />
|
||||
<Button name="btnLinkForgot" text="忘记密码" width="96" textcolor="#FF7FA5CC" bkcolor="#00000000" />
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelRegister" height="auto" visible="false">
|
||||
<HorizontalLayout height="36">
|
||||
<Edit name="regUser" width="160" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Control width="8" />
|
||||
<Edit name="regEmail" width="200" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="100" height="36" bkcolor="#FF234A33" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="6" />
|
||||
<HorizontalLayout height="36">
|
||||
<Edit name="regCode" width="160" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Control width="8" />
|
||||
<Edit name="regPass" width="150" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" />
|
||||
<Control width="8" />
|
||||
<Edit name="regPass2" width="150" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" />
|
||||
<Control width="8" />
|
||||
<Button name="btnRegister" text="注册" width="90" height="36" bkcolor="#FF2E9E6B" textcolor="#FFFFFFFF" font="1" />
|
||||
</HorizontalLayout>
|
||||
<Label name="regTip" text="" textcolor="#FFD98A8A" height="22" />
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
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)} 字节")
|
||||
@@ -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''' <VerticalLayout name="panelLogin" height="248">
|
||||
<Label name="lblUser" text="账号或卡密" textcolor="{L}" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" />
|
||||
<Control height="12" />
|
||||
<Label name="lblPass" text="密码" textcolor="{L}" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" password="true" />
|
||||
<Control height="12" />
|
||||
<HorizontalLayout name="rowRemember" height="22">
|
||||
<Button name="btnRemember" text="[ ] 记住账号" textcolor="{REM}" bkcolor="#00000000" width="104" height="22" />
|
||||
</HorizontalLayout>
|
||||
<Control height="14" />
|
||||
<Button name="btnLogin" text="{BTN}" height="44" bkcolor="{PRI}" textcolor="{PRI_FG}" font="1" />
|
||||
<Label name="lblTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
</VerticalLayout>
|
||||
'''
|
||||
|
||||
def p_register(L, IN_BG, IN_FG, IN_BORDER, PRI, PRI_FG, ACC):
|
||||
return f''' <VerticalLayout name="panelRegister" height="404" visible="false">
|
||||
<Label text="用户名" textcolor="{L}" height="18" />
|
||||
<Edit name="regUser" height="38" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" />
|
||||
<Control height="10" />
|
||||
<Label text="邮箱" textcolor="{L}" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="38" bkcolor="{ACC}" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="10" />
|
||||
<Label name="lblRegCode" text="邮箱验证码" textcolor="{L}" height="18" />
|
||||
<Edit name="regCode" height="38" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="{L}" height="18" />
|
||||
<Edit name="regPass" height="38" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" password="true" />
|
||||
<Control height="10" />
|
||||
<Label text="确认密码" textcolor="{L}" height="18" />
|
||||
<Edit name="regPass2" height="38" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" password="true" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="{PRI}" textcolor="{PRI_FG}" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
</VerticalLayout>
|
||||
'''
|
||||
|
||||
def p_card(L, IN_BG, IN_FG, IN_BORDER, PRI, PRI_FG):
|
||||
return f''' <VerticalLayout name="panelCard" height="250" visible="false">
|
||||
<Label text="用户名" textcolor="{L}" height="18" />
|
||||
<Edit name="cardUser" height="40" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" />
|
||||
<Control height="12" />
|
||||
<Label text="卡密" textcolor="{L}" height="18" />
|
||||
<Edit name="cardKey" height="40" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" />
|
||||
<Control height="10" />
|
||||
<Label text="卡密充入该账号余额,充值后请用账号密码登录" textcolor="{L}" height="18" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRecharge" text="立即充值" height="44" bkcolor="{PRI}" textcolor="{PRI_FG}" font="1" />
|
||||
<Label name="cardTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
</VerticalLayout>
|
||||
'''
|
||||
|
||||
def p_reset(L, IN_BG, IN_FG, IN_BORDER, PRI, PRI_FG, ACC):
|
||||
return f''' <VerticalLayout name="panelReset" height="322" visible="false">
|
||||
<Label name="lblResetCard" text="卡密" textcolor="{L}" height="18" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" visible="false" />
|
||||
<Control name="spResetCard" height="12" visible="false" />
|
||||
<Label text="邮箱" textcolor="{L}" height="18" />
|
||||
<HorizontalLayout height="40">
|
||||
<Edit name="resetEmail" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode2" text="发送验证码" width="104" height="40" bkcolor="{ACC}" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Label text="邮箱验证码" textcolor="{L}" height="18" />
|
||||
<Edit name="resetCode" height="40" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" />
|
||||
<Control height="12" />
|
||||
<Label text="新密码" textcolor="{L}" height="18" />
|
||||
<Edit name="resetPass" height="40" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BORDER}" inset="10,0,0,0" password="true" />
|
||||
<Control height="14" />
|
||||
<Button name="btnReset" text="重置密码" height="44" bkcolor="{PRI}" textcolor="{PRI_FG}" font="1" />
|
||||
<Label name="resetTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
</VerticalLayout>
|
||||
'''
|
||||
|
||||
|
||||
def p_overlays(L, IN_BG, IN_FG, IN_BD, PRI, PRI_FG, MUTED):
|
||||
"""公告 / 更新 / 设备超限 三个覆盖面板:和四个 tab 面板同级,显示时先隐藏它们。"""
|
||||
return f''' <VerticalLayout name="panelNotice" height="322" visible="false">
|
||||
<Label text="公 告" textcolor="{PRI}" font="1" height="30" />
|
||||
<Label name="noticeTitle" text="" textcolor="{IN_FG}" height="26" />
|
||||
<Control height="6" />
|
||||
<Label name="noticeBody" text="" textcolor="{L}" height="150" multiline="true" endellipsis="true" />
|
||||
<HorizontalLayout height="34">
|
||||
<Button name="btnNoticePrev" text="上一条" width="86" height="32" bkcolor="{IN_BG}" textcolor="{IN_FG}" />
|
||||
<Control width="8" />
|
||||
<Button name="btnNoticeNext" text="下一条" width="86" height="32" bkcolor="{IN_BG}" textcolor="{IN_FG}" />
|
||||
<Control />
|
||||
<Label name="noticeIdx" text="" textcolor="{MUTED}" width="54" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Button name="btnNoticeOk" text="我知道了" height="44" bkcolor="{PRI}" textcolor="{PRI_FG}" font="1" />
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelUpdate" height="300" visible="false">
|
||||
<Label text="版本更新" textcolor="{PRI}" font="1" height="28" />
|
||||
<Label name="updTitle" text="" textcolor="{IN_FG}" height="26" />
|
||||
<Control height="6" />
|
||||
<Label name="updNotes" text="" textcolor="{L}" height="130" multiline="true" endellipsis="true" />
|
||||
<Label name="updTip" text="" textcolor="{MUTED}" height="24" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button name="btnUpdLater" text="稍后提醒" width="112" height="44" bkcolor="{IN_BG}" textcolor="{IN_FG}" />
|
||||
<Control width="10" />
|
||||
<Button name="btnUpdate" text="立即更新" height="44" bkcolor="{PRI}" textcolor="{PRI_FG}" font="1" />
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
<VerticalLayout name="panelDevice" height="386" visible="false">
|
||||
<Label name="devHead" text="设备数量已满" textcolor="{PRI}" font="1" height="28" />
|
||||
<Label name="devTitle" text="" textcolor="{IN_FG}" height="24" />
|
||||
<Control height="6" />
|
||||
<Label name="lblDevCard" text="卡密" textcolor="{L}" height="18" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BD}" inset="10,0,0,0" visible="false" />
|
||||
<Control name="spDevCard" height="6" visible="false" />
|
||||
<Control height="6" />
|
||||
<Label name="devBody" text="" textcolor="{L}" height="150" multiline="true" endellipsis="true" />
|
||||
<Control height="6" />
|
||||
<Label text="输入要解绑的设备序号" textcolor="{MUTED}" height="18" />
|
||||
<Edit name="devIdx" height="36" bkcolor="{IN_BG}" nativebkcolor="{IN_BG}" textcolor="{IN_FG}" bordercolor="{IN_BD}" inset="10,0,0,0" />
|
||||
<Label name="devTip" text="" textcolor="{MUTED}" height="22" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button name="btnUnbind" text="解绑该设备" width="118" height="44" bkcolor="{PRI}" textcolor="{PRI_FG}" font="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnUnbindOld" text="解绑最早一台" width="118" height="44" bkcolor="{PRI}" textcolor="{PRI_FG}" />
|
||||
<Control width="8" />
|
||||
<Button name="btnRetryLogin" text="重试" width="72" height="44" bkcolor="{IN_BG}" textcolor="{IN_FG}" />
|
||||
<Control width="8" />
|
||||
<Button name="btnBack" text="返回" width="72" height="44" bkcolor="{IN_BG}" textcolor="{IN_FG}" />
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
'''
|
||||
|
||||
def footer(L, LINK, dev_prefix="设备"):
|
||||
return f''' <Label name="lblDevice" text="{dev_prefix}" textcolor="{L}" height="18" margin="0,6,0,0" />
|
||||
'''
|
||||
|
||||
# ------------------------- 皮肤 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'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="470,436" caption="0,0,-1,44" mininfo="470,380" bkcolor="{T['BG']}">
|
||||
<VerticalLayout bkcolor="{T['BG']}" bordercolor="#FF32323A" bordersize="1">
|
||||
<HorizontalLayout height="44" bkcolor="{T['TITLE_BG']}">
|
||||
<Label text="软件授权验证" textcolor="{T['TITLE']}" font="1" width="260" textpadding="20,0,0,0" />
|
||||
<Control />
|
||||
<Button name="btnClose" text="×" font="1" width="40" height="44" textcolor="{T['CLOSE']}" bkcolor="{T['TITLE_BG']}" hotbkcolor="#33FFFFFF" pushedbkcolor="#55FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout height="44" inset="20,0,20,0">
|
||||
<VerticalLayout width="84">
|
||||
<Button name="tabLogin" text="登录" height="42" bkcolor="#00000000" textcolor="{T['TAB_ACT']}" font="1" />
|
||||
<Control height="2" bkcolor="{T['TAB_ACT']}" />
|
||||
</VerticalLayout>
|
||||
<VerticalLayout width="84">
|
||||
<Button name="tabRegister" text="注册" height="42" bkcolor="#00000000" textcolor="{T['TAB_IDLE']}" />
|
||||
<Control name="lineRegister" height="2" bkcolor="#00000000" />
|
||||
</VerticalLayout>
|
||||
<VerticalLayout width="84">
|
||||
<Button name="tabCard" text="卡密充值" height="42" bkcolor="#00000000" textcolor="{T['TAB_IDLE']}" />
|
||||
<Control name="lineCard" height="2" bkcolor="#00000000" />
|
||||
</VerticalLayout>
|
||||
<VerticalLayout width="84">
|
||||
<Button name="tabReset" text="忘记密码" height="42" bkcolor="#00000000" textcolor="{T['TAB_IDLE']}" />
|
||||
<Control name="lineReset" height="2" bkcolor="#00000000" />
|
||||
</VerticalLayout>
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="24,14,24,16">
|
||||
<Label name="lblApp" text="演示程序" textcolor="{T['TAB_ACT']}" height="30" font="2" />
|
||||
<Control height="8" />
|
||||
{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'])}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ------------------------- 皮肤 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'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="470,436" caption="0,0,-1,44" mininfo="470,380" bkcolor="{T['BG']}">
|
||||
<VerticalLayout bkcolor="{T['BG']}" bordercolor="#FFDCDCE3" bordersize="1">
|
||||
<HorizontalLayout height="44" bkcolor="#FFFFFFFF">
|
||||
<Label text="软件授权验证" textcolor="{T['TITLE']}" font="1" width="260" textpadding="20,0,0,0" />
|
||||
<Control />
|
||||
<Button name="btnClose" text="×" font="1" width="40" height="44" textcolor="{T['CLOSE']}" bkcolor="#FFFFFFFF" hotbkcolor="#14000000" pushedbkcolor="#22000000" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout height="12" />
|
||||
<HorizontalLayout height="38" inset="24,0,24,0">
|
||||
<Button name="tabLogin" text="登录" height="38" bkcolor="{T['SEG_ACT']}" textcolor="{T['SEG_ACT_FG']}" font="1" />
|
||||
<Control width="6" />
|
||||
<Button name="tabRegister" text="注册" height="38" bkcolor="{T['SEG_IDLE']}" textcolor="{T['SEG_IDLE_FG']}" />
|
||||
<Control width="6" />
|
||||
<Button name="tabCard" text="卡密充值" height="38" bkcolor="{T['SEG_IDLE']}" textcolor="{T['SEG_IDLE_FG']}" />
|
||||
<Control width="6" />
|
||||
<Button name="tabReset" text="忘记密码" height="38" bkcolor="{T['SEG_IDLE']}" textcolor="{T['SEG_IDLE_FG']}" />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="24,16,24,16">
|
||||
<Label name="lblApp" text="演示程序" textcolor="{T['PRI']}" height="30" font="2" />
|
||||
<Control height="8" />
|
||||
{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'])}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ------------------------- 皮肤 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'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="680,452" caption="0,0,0,0" mininfo="680,400" bkcolor="{T['BG']}">
|
||||
<HorizontalLayout bkcolor="{T['BG']}" bordercolor="#FF282D35" bordersize="1">
|
||||
<VerticalLayout width="196" bkcolor="{T['SIDE']}">
|
||||
<HorizontalLayout height="44" inset="24,0,0,0">
|
||||
<Label text="VFY" textcolor="{T['ACT']}" font="1" width="120" />
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="24,4,24,0">
|
||||
<Label text="软件授权" textcolor="#FFC8D3E0" height="28" font="1" />
|
||||
<Label text="SOFTWARE LICENSE" textcolor="#FF63707E" height="20" />
|
||||
<Label text="登录后绑定本机设备" textcolor="#FF4C5A68" height="20" margin="0,14,0,0" />
|
||||
</VerticalLayout>
|
||||
<VerticalLayout />
|
||||
<HorizontalLayout height="28" inset="24,0,24,16">
|
||||
<Label text="v9 · DuiLib" textcolor="#FF4A5764" />
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
<VerticalLayout>
|
||||
<HorizontalLayout height="44" inset="24,0,16,0">
|
||||
<Button name="tabLogin" text="登录" width="72" height="44" bkcolor="#00000000" textcolor="{T['ACT']}" font="1" />
|
||||
<Button name="tabRegister" text="注册" width="72" height="44" bkcolor="#00000000" textcolor="{T['IDLE']}" />
|
||||
<Button name="tabCard" text="卡密充值" width="92" height="44" bkcolor="#00000000" textcolor="{T['IDLE']}" />
|
||||
<Button name="tabReset" text="忘记密码" width="92" height="44" bkcolor="#00000000" textcolor="{T['IDLE']}" />
|
||||
<Button name="btnClose" text="×" font="1" width="40" height="44" textcolor="#FF8E9BAA" bkcolor="{T['BG']}" hotbkcolor="#22FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="24,4,24,14">
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FFF6FAFF" height="30" font="2" />
|
||||
<Control height="8" />
|
||||
{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'])}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</HorizontalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ------------------------- 皮肤 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'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="720,460" caption="0,0,-1,88" mininfo="720,400" bkcolor="{T['BG']}">
|
||||
<VerticalLayout bkcolor="{T['BG']}" bordercolor="#FFD7DBE3" bordersize="1">
|
||||
<HorizontalLayout height="88" bkcolor="{T['BAR']}">
|
||||
<VerticalLayout inset="28,16,0,0">
|
||||
<Label text="软件授权验证" textcolor="#FFFFFFFF" font="1" height="32" />
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FFD9D4FF" height="22" />
|
||||
</VerticalLayout>
|
||||
<Control />
|
||||
<Button name="btnClose" text="×" font="1" width="46" height="88" textcolor="#FFEDEBFF" bkcolor="{T['BAR']}" hotbkcolor="#22000000" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout height="50" inset="28,12,28,0">
|
||||
<Button name="tabLogin" text="登录" height="36" bkcolor="#FFFFFFFF" textcolor="{T['PRI']}" font="1" />
|
||||
<Control width="8" />
|
||||
<Button name="tabRegister" text="注册" height="36" bkcolor="{T['SEG_IDLE']}" textcolor="{T['SEG_IDLE_FG']}" />
|
||||
<Control width="8" />
|
||||
<Button name="tabCard" text="卡密充值" height="36" bkcolor="{T['SEG_IDLE']}" textcolor="{T['SEG_IDLE_FG']}" />
|
||||
<Control width="8" />
|
||||
<Button name="tabReset" text="忘记密码" height="36" bkcolor="{T['SEG_IDLE']}" textcolor="{T['SEG_IDLE_FG']}" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout inset="28,14,28,16">
|
||||
<VerticalLayout width="248">
|
||||
<Label text="账号安全" textcolor="#FF1F2430" height="24" font="1" />
|
||||
<Label text="登录后账号与本机设备绑定," textcolor="{T['L']}" height="20" />
|
||||
<Label text="超出设备上限时请先下线一台。" textcolor="{T['L']}" height="20" />
|
||||
<Control height="12" />
|
||||
{footer(T['DEV'], T['PRI'])}
|
||||
</VerticalLayout>
|
||||
<Control width="24" />
|
||||
<Control width="1" bkcolor="#FFE3E6EC" />
|
||||
<Control width="24" />
|
||||
<VerticalLayout>
|
||||
{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'])}
|
||||
</VerticalLayout>
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ------------------------- 皮肤 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'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="600,452" caption="0,0,-1,46" mininfo="600,400" bkcolor="{T['BG']}">
|
||||
<VerticalLayout bkcolor="{T['BG']}" bordercolor="#FF1F4E79" bordersize="1">
|
||||
<HorizontalLayout height="46" bkcolor="{T['BAR']}">
|
||||
<Label text="AUTHORIZATION" textcolor="#FF7FD1FF" font="1" width="200" textpadding="18,0,0,0" />
|
||||
<Control />
|
||||
<Button name="tabLogin" text="LOGIN" width="76" height="46" bkcolor="{T['ACT']}" textcolor="#FFFFFFFF" />
|
||||
<Button name="tabRegister" text="SIGN UP" width="84" height="46" bkcolor="#00000000" textcolor="#FF9FC8E6" />
|
||||
<Button name="tabCard" text="CARD" width="66" height="46" bkcolor="#00000000" textcolor="#FF9FC8E6" />
|
||||
<Button name="tabReset" text="RESET" width="70" height="46" bkcolor="#00000000" textcolor="#FF9FC8E6" />
|
||||
<Button name="btnClose" text="×" font="1" width="44" height="46" textcolor="#FFBEE3FF" bkcolor="{T['BAR']}" hotbkcolor="#33FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="24,14,24,14">
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FFA8D4F0" height="30" font="2" />
|
||||
<Control height="8" />
|
||||
{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'])}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ------------------------- 皮肤 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'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="620,446" caption="0,0,-1,38" mininfo="620,400" bkcolor="{T['BG']}">
|
||||
<VerticalLayout bkcolor="{T['BG']}" bordercolor="{T['IN_BD']}" bordersize="1">
|
||||
<HorizontalLayout height="38" bkcolor="{T['BAR']}" inset="0,0,8,0">
|
||||
<Label text="vfy@local:~$ auth" textcolor="{T['ACT']}" width="220" textpadding="14,0,0,0" />
|
||||
<Control />
|
||||
<Button name="btnClose" text="×" font="1" width="38" height="38" textcolor="#FF7FB08C" bkcolor="{T['BAR']}" hotbkcolor="#22FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout height="34" bkcolor="#FF0E150F" inset="8,0,8,0">
|
||||
<Button name="tabLogin" text="login" width="76" height="34" bkcolor="#00000000" textcolor="{T['ACT']}" font="1" />
|
||||
<Button name="tabRegister" text="register" width="92" height="34" bkcolor="#00000000" textcolor="{T['L']}" />
|
||||
<Button name="tabCard" text="card" width="66" height="34" bkcolor="#00000000" textcolor="{T['L']}" />
|
||||
<Button name="tabReset" text="reset" width="70" height="34" bkcolor="#00000000" textcolor="{T['L']}" />
|
||||
<Control />
|
||||
</HorizontalLayout>
|
||||
<VerticalLayout inset="16,10,16,12">
|
||||
<Label name="lblApp" text="# 演示程序" textcolor="{T['ACT']}" height="28" font="2" />
|
||||
<Control height="6" />
|
||||
{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'])}
|
||||
</VerticalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
# ------------------------- 皮肤 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'''<?xml version="1.0" encoding="utf-8"?>
|
||||
<Window size="760,392" caption="0,0,-1,38" mininfo="760,300" bkcolor="{T['BG']}">
|
||||
<VerticalLayout bkcolor="{T['BG']}" bordercolor="#FF2A3440" bordersize="1">
|
||||
<HorizontalLayout height="38" bkcolor="{T['BAR']}">
|
||||
<Label text="账号中心" textcolor="#FFA8BCCE" width="160" textpadding="16,0,0,0" />
|
||||
<Control />
|
||||
<Button name="btnClose" text="×" font="1" width="38" height="38" textcolor="#FFA8BCCE" bkcolor="{T['BAR']}" hotbkcolor="#22FFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout inset="16,12,16,12">
|
||||
<VerticalLayout width="176">
|
||||
<Label name="lblApp" text="演示程序" textcolor="#FFF2F8FF" height="28" font="2" />
|
||||
<Control height="10" />
|
||||
<Button name="tabLogin" text="登录" width="100" height="32" bkcolor="{T['SEL']}" textcolor="#FFFFFFFF" />
|
||||
<Control height="6" />
|
||||
<Button name="tabRegister" text="注册" width="100" height="32" bkcolor="{T['BAR']}" textcolor="#FF9FB3C8" />
|
||||
<Control height="6" />
|
||||
<Button name="tabCard" text="卡密充值" width="100" height="32" bkcolor="{T['BAR']}" textcolor="#FF9FB3C8" />
|
||||
<Control height="6" />
|
||||
<Button name="tabReset" text="忘记密码" width="100" height="32" bkcolor="{T['BAR']}" textcolor="#FF9FB3C8" />
|
||||
<VerticalLayout />
|
||||
{footer(T['DEV'], T['ACT'])}
|
||||
</VerticalLayout>
|
||||
<Control width="14" />
|
||||
<Control width="1" bkcolor="#FF2A3440" />
|
||||
<Control width="14" />
|
||||
<VerticalLayout>
|
||||
{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'])}
|
||||
</VerticalLayout>
|
||||
</HorizontalLayout>
|
||||
</VerticalLayout>
|
||||
</Window>'''
|
||||
|
||||
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)} 字节")
|
||||
+110
-106
@@ -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(<?xml version="1.0" encoding="utf-8"?>
|
||||
@@ -33,10 +37,10 @@ static const char *kSkin_dark = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Control height="8" />
|
||||
<VerticalLayout name="panelLogin" height="248">
|
||||
<Label name="lblUser" text="账号或卡密" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label name="lblPass" text="密码" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" password="true" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<HorizontalLayout name="rowRemember" height="22">
|
||||
<Button name="btnRemember" text="[ ] 记住账号" textcolor="#FFB4B4BE" bkcolor="#00000000" width="104" height="22" />
|
||||
@@ -48,23 +52,23 @@ static const char *kSkin_dark = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelRegister" height="404" visible="false">
|
||||
<Label text="用户名" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="邮箱" textcolor="#FFB4B4BE" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit name="regEmail" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="38" bkcolor="#FF2F6E4E" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="10" />
|
||||
<Label name="lblRegCode" text="邮箱验证码" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="确认密码" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="#FF146FB8" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -72,10 +76,10 @@ static const char *kSkin_dark = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelCard" height="250" visible="false">
|
||||
<Label text="用户名" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="卡密" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="卡密充入该账号余额,充值后请用账号密码登录" textcolor="#FFB4B4BE" height="18" />
|
||||
<Control height="14" />
|
||||
@@ -85,20 +89,20 @@ static const char *kSkin_dark = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelReset" height="322" visible="false">
|
||||
<Label name="lblResetCard" text="卡密" textcolor="#FFB4B4BE" height="18" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spResetCard" height="12" visible="false" />
|
||||
<Label text="邮箱" textcolor="#FFB4B4BE" height="18" />
|
||||
<HorizontalLayout height="40">
|
||||
<Edit name="resetEmail" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit name="resetEmail" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode2" text="发送验证码" width="104" height="40" bkcolor="#FF2F6E4E" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Label text="邮箱验证码" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="新密码" textcolor="#FFB4B4BE" height="18" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" password="true" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnReset" text="重置密码" height="44" bkcolor="#FF146FB8" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="resetTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -136,7 +140,7 @@ static const char *kSkin_dark = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Label name="devTitle" text="" textcolor="#FFF4F4F8" height="24" />
|
||||
<Control height="6" />
|
||||
<Label name="lblDevCard" text="卡密" textcolor="#FFB4B4BE" height="18" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spDevCard" height="6" visible="false" />
|
||||
<Control height="6" />
|
||||
<HorizontalLayout name="rowBox0" height="40">
|
||||
@@ -189,7 +193,7 @@ static const char *kSkin_dark = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Control height="6" />
|
||||
<Control height="6" />
|
||||
<Label visible="false" text="输入要解绑的设备序号" textcolor="#FF5C5C68" height="18" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF474755" inset="10,0,0,0" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF2A2A33" nativebkcolor="#FF2A2A33" textcolor="#FFF4F4F8" bordercolor="#FF565672" inset="10,0,0,0" bordersize="1" />
|
||||
<Label name="devTip" text="" textcolor="#FF5C5C68" height="22" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button visible="false" name="btnUnbind" text="解绑该设备" width="118" height="44" bkcolor="#FF146FB8" textcolor="#FFFFFFFF" font="1" />
|
||||
@@ -231,10 +235,10 @@ static const char *kSkin_light = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Control height="8" />
|
||||
<VerticalLayout name="panelLogin" height="248">
|
||||
<Label name="lblUser" text="账号或卡密" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label name="lblPass" text="密码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" password="true" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<HorizontalLayout name="rowRemember" height="22">
|
||||
<Button name="btnRemember" text="[ ] 记住账号" textcolor="#FF4B5563" bkcolor="#00000000" width="104" height="22" />
|
||||
@@ -246,23 +250,23 @@ static const char *kSkin_light = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelRegister" height="404" visible="false">
|
||||
<Label text="用户名" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="邮箱" textcolor="#FF4B5563" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit name="regEmail" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="38" bkcolor="#FF128A5B" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="10" />
|
||||
<Label name="lblRegCode" text="邮箱验证码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="确认密码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="#FF1B6FD6" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -270,10 +274,10 @@ static const char *kSkin_light = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelCard" height="250" visible="false">
|
||||
<Label text="用户名" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="卡密" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="卡密充入该账号余额,充值后请用账号密码登录" textcolor="#FF4B5563" height="18" />
|
||||
<Control height="14" />
|
||||
@@ -283,20 +287,20 @@ static const char *kSkin_light = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelReset" height="322" visible="false">
|
||||
<Label name="lblResetCard" text="卡密" textcolor="#FF4B5563" height="18" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spResetCard" height="12" visible="false" />
|
||||
<Label text="邮箱" textcolor="#FF4B5563" height="18" />
|
||||
<HorizontalLayout height="40">
|
||||
<Edit name="resetEmail" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit name="resetEmail" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode2" text="发送验证码" width="104" height="40" bkcolor="#FF128A5B" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Label text="邮箱验证码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="新密码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" password="true" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnReset" text="重置密码" height="44" bkcolor="#FF1B6FD6" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="resetTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -334,7 +338,7 @@ static const char *kSkin_light = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Label name="devTitle" text="" textcolor="#FF1F2430" height="24" />
|
||||
<Control height="6" />
|
||||
<Label name="lblDevCard" text="卡密" textcolor="#FF4B5563" height="18" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spDevCard" height="6" visible="false" />
|
||||
<Control height="6" />
|
||||
<HorizontalLayout name="rowBox0" height="40">
|
||||
@@ -387,7 +391,7 @@ static const char *kSkin_light = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Control height="6" />
|
||||
<Control height="6" />
|
||||
<Label visible="false" text="输入要解绑的设备序号" textcolor="#FF8A8F99" height="18" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FFF1F3F7" nativebkcolor="#FFF1F3F7" textcolor="#FF1F2430" bordercolor="#FFC3CBD8" inset="10,0,0,0" bordersize="1" />
|
||||
<Label name="devTip" text="" textcolor="#FF8A8F99" height="22" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button visible="false" name="btnUnbind" text="解绑该设备" width="118" height="44" bkcolor="#FF1B6FD6" textcolor="#FFFFFFFF" font="1" />
|
||||
@@ -437,10 +441,10 @@ static const char *kSkin_split = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Control height="8" />
|
||||
<VerticalLayout name="panelLogin" height="248">
|
||||
<Label name="lblUser" text="账号或卡密" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label name="lblPass" text="密码" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" password="true" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<HorizontalLayout name="rowRemember" height="22">
|
||||
<Button name="btnRemember" text="[ ] 记住账号" textcolor="#FF8794A3" bkcolor="#00000000" width="104" height="22" />
|
||||
@@ -452,23 +456,23 @@ static const char *kSkin_split = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelRegister" height="404" visible="false">
|
||||
<Label text="用户名" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="邮箱" textcolor="#FF8794A3" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit name="regEmail" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="38" bkcolor="#FF2B6A50" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="10" />
|
||||
<Label name="lblRegCode" text="邮箱验证码" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="确认密码" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="#FF2C7BE5" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -476,10 +480,10 @@ static const char *kSkin_split = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelCard" height="250" visible="false">
|
||||
<Label text="用户名" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="卡密" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="卡密充入该账号余额,充值后请用账号密码登录" textcolor="#FF8794A3" height="18" />
|
||||
<Control height="14" />
|
||||
@@ -489,20 +493,20 @@ static const char *kSkin_split = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelReset" height="322" visible="false">
|
||||
<Label name="lblResetCard" text="卡密" textcolor="#FF8794A3" height="18" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spResetCard" height="12" visible="false" />
|
||||
<Label text="邮箱" textcolor="#FF8794A3" height="18" />
|
||||
<HorizontalLayout height="40">
|
||||
<Edit name="resetEmail" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit name="resetEmail" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode2" text="发送验证码" width="104" height="40" bkcolor="#FF2B6A50" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Label text="邮箱验证码" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="新密码" textcolor="#FF8794A3" height="18" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" password="true" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnReset" text="重置密码" height="44" bkcolor="#FF2C7BE5" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="resetTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -540,7 +544,7 @@ static const char *kSkin_split = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Label name="devTitle" text="" textcolor="#FFF2F6FA" height="24" />
|
||||
<Control height="6" />
|
||||
<Label name="lblDevCard" text="卡密" textcolor="#FF8794A3" height="18" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spDevCard" height="6" visible="false" />
|
||||
<Control height="6" />
|
||||
<HorizontalLayout name="rowBox0" height="40">
|
||||
@@ -593,7 +597,7 @@ static const char *kSkin_split = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Control height="6" />
|
||||
<Control height="6" />
|
||||
<Label visible="false" text="输入要解绑的设备序号" textcolor="#FF7E8B99" height="18" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF1A1F27" nativebkcolor="#FF1A1F27" textcolor="#FFF2F6FA" bordercolor="#FF2E343D" inset="10,0,0,0" bordersize="1" />
|
||||
<Label name="devTip" text="" textcolor="#FF7E8B99" height="22" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button visible="false" name="btnUnbind" text="解绑该设备" width="118" height="44" bkcolor="#FF2C7BE5" textcolor="#FFFFFFFF" font="1" />
|
||||
@@ -648,10 +652,10 @@ static const char *kSkin_card = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<VerticalLayout>
|
||||
<VerticalLayout name="panelLogin" height="248">
|
||||
<Label name="lblUser" text="账号或卡密" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label name="lblPass" text="密码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" password="true" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<HorizontalLayout name="rowRemember" height="22">
|
||||
<Button name="btnRemember" text="[ ] 记住账号" textcolor="#FF4B5563" bkcolor="#00000000" width="104" height="22" />
|
||||
@@ -663,23 +667,23 @@ static const char *kSkin_card = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelRegister" height="404" visible="false">
|
||||
<Label text="用户名" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="邮箱" textcolor="#FF4B5563" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit name="regEmail" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="38" bkcolor="#FF128A5B" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="10" />
|
||||
<Label name="lblRegCode" text="邮箱验证码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="确认密码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="#FF3B2BD6" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -687,10 +691,10 @@ static const char *kSkin_card = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelCard" height="250" visible="false">
|
||||
<Label text="用户名" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="卡密" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="卡密充入该账号余额,充值后请用账号密码登录" textcolor="#FF4B5563" height="18" />
|
||||
<Control height="14" />
|
||||
@@ -700,20 +704,20 @@ static const char *kSkin_card = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelReset" height="322" visible="false">
|
||||
<Label name="lblResetCard" text="卡密" textcolor="#FF4B5563" height="18" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spResetCard" height="12" visible="false" />
|
||||
<Label text="邮箱" textcolor="#FF4B5563" height="18" />
|
||||
<HorizontalLayout height="40">
|
||||
<Edit name="resetEmail" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit name="resetEmail" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode2" text="发送验证码" width="104" height="40" bkcolor="#FF128A5B" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Label text="邮箱验证码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="新密码" textcolor="#FF4B5563" height="18" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" password="true" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnReset" text="重置密码" height="44" bkcolor="#FF3B2BD6" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="resetTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -751,7 +755,7 @@ static const char *kSkin_card = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Label name="devTitle" text="" textcolor="#FF1F2430" height="24" />
|
||||
<Control height="6" />
|
||||
<Label name="lblDevCard" text="卡密" textcolor="#FF4B5563" height="18" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spDevCard" height="6" visible="false" />
|
||||
<Control height="6" />
|
||||
<HorizontalLayout name="rowBox0" height="40">
|
||||
@@ -804,7 +808,7 @@ static const char *kSkin_card = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Control height="6" />
|
||||
<Control height="6" />
|
||||
<Label visible="false" text="输入要解绑的设备序号" textcolor="#FF8A8F99" height="18" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FFFFFFFF" nativebkcolor="#FFFFFFFF" textcolor="#FF1F2430" bordercolor="#FFC9D1DC" inset="10,0,0,0" bordersize="1" />
|
||||
<Label name="devTip" text="" textcolor="#FF8A8F99" height="22" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button visible="false" name="btnUnbind" text="解绑该设备" width="118" height="44" bkcolor="#FF3B2BD6" textcolor="#FFFFFFFF" font="1" />
|
||||
@@ -839,10 +843,10 @@ static const char *kSkin_industrial = R"SKIN(<?xml version="1.0" encoding="utf-8
|
||||
<Control height="8" />
|
||||
<VerticalLayout name="panelLogin" height="248">
|
||||
<Label name="lblUser" text="账号或卡密" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label name="lblPass" text="密码" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" password="true" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<HorizontalLayout name="rowRemember" height="22">
|
||||
<Button name="btnRemember" text="[ ] 记住账号" textcolor="#FF9FC0D8" bkcolor="#00000000" width="104" height="22" />
|
||||
@@ -854,23 +858,23 @@ static const char *kSkin_industrial = R"SKIN(<?xml version="1.0" encoding="utf-8
|
||||
|
||||
<VerticalLayout name="panelRegister" height="404" visible="false">
|
||||
<Label text="用户名" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="邮箱" textcolor="#FF9FC0D8" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit name="regEmail" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="38" bkcolor="#FF1B4A3C" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="10" />
|
||||
<Label name="lblRegCode" text="邮箱验证码" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="确认密码" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="#FF1F6FB2" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -878,10 +882,10 @@ static const char *kSkin_industrial = R"SKIN(<?xml version="1.0" encoding="utf-8
|
||||
|
||||
<VerticalLayout name="panelCard" height="250" visible="false">
|
||||
<Label text="用户名" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="卡密" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="卡密充入该账号余额,充值后请用账号密码登录" textcolor="#FF9FC0D8" height="18" />
|
||||
<Control height="14" />
|
||||
@@ -891,20 +895,20 @@ static const char *kSkin_industrial = R"SKIN(<?xml version="1.0" encoding="utf-8
|
||||
|
||||
<VerticalLayout name="panelReset" height="322" visible="false">
|
||||
<Label name="lblResetCard" text="卡密" textcolor="#FF9FC0D8" height="18" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spResetCard" height="12" visible="false" />
|
||||
<Label text="邮箱" textcolor="#FF9FC0D8" height="18" />
|
||||
<HorizontalLayout height="40">
|
||||
<Edit name="resetEmail" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit name="resetEmail" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode2" text="发送验证码" width="104" height="40" bkcolor="#FF1B4A3C" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Label text="邮箱验证码" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="新密码" textcolor="#FF9FC0D8" height="18" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" password="true" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnReset" text="重置密码" height="44" bkcolor="#FF1F6FB2" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="resetTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -942,7 +946,7 @@ static const char *kSkin_industrial = R"SKIN(<?xml version="1.0" encoding="utf-8
|
||||
<Label name="devTitle" text="" textcolor="#FFEAF6FF" height="24" />
|
||||
<Control height="6" />
|
||||
<Label name="lblDevCard" text="卡密" textcolor="#FF9FC0D8" height="18" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spDevCard" height="6" visible="false" />
|
||||
<Control height="6" />
|
||||
<HorizontalLayout name="rowBox0" height="40">
|
||||
@@ -995,7 +999,7 @@ static const char *kSkin_industrial = R"SKIN(<?xml version="1.0" encoding="utf-8
|
||||
<Control height="6" />
|
||||
<Control height="6" />
|
||||
<Label visible="false" text="输入要解绑的设备序号" textcolor="#FF5F89A6" height="18" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF14304A" nativebkcolor="#FF14304A" textcolor="#FFEAF6FF" bordercolor="#FF23567F" inset="10,0,0,0" bordersize="1" />
|
||||
<Label name="devTip" text="" textcolor="#FF5F89A6" height="22" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button visible="false" name="btnUnbind" text="解绑该设备" width="118" height="44" bkcolor="#FF1F6FB2" textcolor="#FFFFFFFF" font="1" />
|
||||
@@ -1034,10 +1038,10 @@ static const char *kSkin_terminal = R"SKIN(<?xml version="1.0" encoding="utf-8"?
|
||||
<Control height="6" />
|
||||
<VerticalLayout name="panelLogin" height="248">
|
||||
<Label name="lblUser" text="账号或卡密" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label name="lblPass" text="密码" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" password="true" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<HorizontalLayout name="rowRemember" height="22">
|
||||
<Button name="btnRemember" text="[ ] 记住账号" textcolor="#FF7FAE90" bkcolor="#00000000" width="104" height="22" />
|
||||
@@ -1049,23 +1053,23 @@ static const char *kSkin_terminal = R"SKIN(<?xml version="1.0" encoding="utf-8"?
|
||||
|
||||
<VerticalLayout name="panelRegister" height="404" visible="false">
|
||||
<Label text="用户名" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="邮箱" textcolor="#FF7FAE90" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit name="regEmail" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="38" bkcolor="#FF234A33" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="10" />
|
||||
<Label name="lblRegCode" text="邮箱验证码" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="确认密码" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="#FF1B7A4E" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -1073,10 +1077,10 @@ static const char *kSkin_terminal = R"SKIN(<?xml version="1.0" encoding="utf-8"?
|
||||
|
||||
<VerticalLayout name="panelCard" height="250" visible="false">
|
||||
<Label text="用户名" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="卡密" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="卡密充入该账号余额,充值后请用账号密码登录" textcolor="#FF7FAE90" height="18" />
|
||||
<Control height="14" />
|
||||
@@ -1086,20 +1090,20 @@ static const char *kSkin_terminal = R"SKIN(<?xml version="1.0" encoding="utf-8"?
|
||||
|
||||
<VerticalLayout name="panelReset" height="322" visible="false">
|
||||
<Label name="lblResetCard" text="卡密" textcolor="#FF7FAE90" height="18" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spResetCard" height="12" visible="false" />
|
||||
<Label text="邮箱" textcolor="#FF7FAE90" height="18" />
|
||||
<HorizontalLayout height="40">
|
||||
<Edit name="resetEmail" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit name="resetEmail" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode2" text="发送验证码" width="104" height="40" bkcolor="#FF234A33" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Label text="邮箱验证码" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="新密码" textcolor="#FF7FAE90" height="18" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" password="true" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnReset" text="重置密码" height="44" bkcolor="#FF1B7A4E" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="resetTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -1137,7 +1141,7 @@ static const char *kSkin_terminal = R"SKIN(<?xml version="1.0" encoding="utf-8"?
|
||||
<Label name="devTitle" text="" textcolor="#FFD7F5DF" height="24" />
|
||||
<Control height="6" />
|
||||
<Label name="lblDevCard" text="卡密" textcolor="#FF7FAE90" height="18" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spDevCard" height="6" visible="false" />
|
||||
<Control height="6" />
|
||||
<HorizontalLayout name="rowBox0" height="40">
|
||||
@@ -1190,7 +1194,7 @@ static const char *kSkin_terminal = R"SKIN(<?xml version="1.0" encoding="utf-8"?
|
||||
<Control height="6" />
|
||||
<Control height="6" />
|
||||
<Label visible="false" text="输入要解绑的设备序号" textcolor="#FF6F9E80" height="18" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF16211A" nativebkcolor="#FF16211A" textcolor="#FFD7F5DF" bordercolor="#FF2B3A2D" inset="10,0,0,0" bordersize="1" />
|
||||
<Label name="devTip" text="" textcolor="#FF6F9E80" height="22" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button visible="false" name="btnUnbind" text="解绑该设备" width="118" height="44" bkcolor="#FF1B7A4E" textcolor="#FFFFFFFF" font="1" />
|
||||
@@ -1238,10 +1242,10 @@ static const char *kSkin_compact = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<VerticalLayout>
|
||||
<VerticalLayout name="panelLogin" height="248">
|
||||
<Label name="lblUser" text="账号或卡密" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit name="editUser" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label name="lblPass" text="密码" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" />
|
||||
<Edit name="editPass" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<HorizontalLayout name="rowRemember" height="22">
|
||||
<Button name="btnRemember" text="[ ] 记住账号" textcolor="#FF95A7B8" bkcolor="#00000000" width="104" height="22" />
|
||||
@@ -1253,23 +1257,23 @@ static const char *kSkin_compact = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelRegister" height="404" visible="false">
|
||||
<Label text="用户名" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit name="regUser" height="38" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="邮箱" textcolor="#FF95A7B8" height="18" />
|
||||
<HorizontalLayout height="38">
|
||||
<Edit name="regEmail" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit name="regEmail" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode" text="发送验证码" width="104" height="38" bkcolor="#FF234A33" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="10" />
|
||||
<Label name="lblRegCode" text="邮箱验证码" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit name="regCode" height="38" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="密码" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass" height="38" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="确认密码" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" />
|
||||
<Edit name="regPass2" height="38" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnRegister" text="注册并登录" height="44" bkcolor="#FF2E9E6B" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="regTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -1277,10 +1281,10 @@ static const char *kSkin_compact = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelCard" height="250" visible="false">
|
||||
<Label text="用户名" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit name="cardUser" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="卡密" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit name="cardKey" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="10" />
|
||||
<Label text="卡密充入该账号余额,充值后请用账号密码登录" textcolor="#FF95A7B8" height="18" />
|
||||
<Control height="14" />
|
||||
@@ -1290,20 +1294,20 @@ static const char *kSkin_compact = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<VerticalLayout name="panelReset" height="322" visible="false">
|
||||
<Label name="lblResetCard" text="卡密" textcolor="#FF95A7B8" height="18" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="resetCardKey" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spResetCard" height="12" visible="false" />
|
||||
<Label text="邮箱" textcolor="#FF95A7B8" height="18" />
|
||||
<HorizontalLayout height="40">
|
||||
<Edit name="resetEmail" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit name="resetEmail" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Control width="8" />
|
||||
<Button name="btnSendCode2" text="发送验证码" width="104" height="40" bkcolor="#FF234A33" textcolor="#FFFFFFFF" />
|
||||
</HorizontalLayout>
|
||||
<Control height="12" />
|
||||
<Label text="邮箱验证码" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit name="resetCode" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Control height="12" />
|
||||
<Label text="新密码" textcolor="#FF95A7B8" height="18" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" />
|
||||
<Edit name="resetPass" height="40" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" password="true" bordersize="1" />
|
||||
<Control height="14" />
|
||||
<Button name="btnReset" text="重置密码" height="44" bkcolor="#FF2E9E6B" textcolor="#FFFFFFFF" font="1" />
|
||||
<Label name="resetTip" text="" textcolor="#FFE08A8A" height="22" margin="0,8,0,0" />
|
||||
@@ -1341,7 +1345,7 @@ static const char *kSkin_compact = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Label name="devTitle" text="" textcolor="#FFFFFFFF" height="24" />
|
||||
<Control height="6" />
|
||||
<Label name="lblDevCard" text="卡密" textcolor="#FF95A7B8" height="18" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" visible="false" />
|
||||
<Edit name="devCardKey" height="36" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" visible="false" bordersize="1" />
|
||||
<Control name="spDevCard" height="6" visible="false" />
|
||||
<Control height="6" />
|
||||
<HorizontalLayout name="rowBox0" height="40">
|
||||
@@ -1394,7 +1398,7 @@ static const char *kSkin_compact = R"SKIN(<?xml version="1.0" encoding="utf-8"?>
|
||||
<Control height="6" />
|
||||
<Control height="6" />
|
||||
<Label visible="false" text="输入要解绑的设备序号" textcolor="#FF8698A8" height="18" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" />
|
||||
<Edit visible="false" name="devIdx" height="36" bkcolor="#FF1B232B" nativebkcolor="#FF1B232B" textcolor="#FFFFFFFF" bordercolor="#FF32404E" inset="10,0,0,0" bordersize="1" />
|
||||
<Label name="devTip" text="" textcolor="#FF8698A8" height="22" />
|
||||
<HorizontalLayout height="44">
|
||||
<Button visible="false" name="btnUnbind" text="解绑该设备" width="118" height="44" bkcolor="#FF2E9E6B" textcolor="#FFFFFFFF" font="1" />
|
||||
|
||||
Reference in New Issue
Block a user