diff --git a/backend/internal/protect/assets/shell32_dui.bin b/backend/internal/protect/assets/shell32_dui.bin
index f880c94..bf76c20 100755
Binary files a/backend/internal/protect/assets/shell32_dui.bin and b/backend/internal/protect/assets/shell32_dui.bin differ
diff --git a/backend/internal/protect/assets/shell64_dui.bin b/backend/internal/protect/assets/shell64_dui.bin
index 95fa58e..dc69779 100755
Binary files a/backend/internal/protect/assets/shell64_dui.bin and b/backend/internal/protect/assets/shell64_dui.bin differ
diff --git a/shell/duilib/shell9_v6.cpp b/shell/duilib/shell9_v6.cpp
index 8c441f6..4d7d748 100644
--- a/shell/duilib/shell9_v6.cpp
+++ b/shell/duilib/shell9_v6.cpp
@@ -1772,9 +1772,16 @@ public:
if (!c) continue;
bool on = (CControlUI *)c == focused;
DWORD want = on ? accent : m_editBorder[i]; // 失焦时还原皮肤原本的边框色
- if (c->GetBorderColor() != want) {
+ // 原来失焦硬编码 SetBorderSize(1),而皮肤 Edit 的原始边框宽度是 0,
+ // 于是每次聚焦再失焦都会在输入框里留下一圈 1px 深灰边(看着像黑框)。
+ // 改成还原各自原始的 RECT,没边框的就回到没边框。
+ RECT wantSize = on ? RECT{2, 2, 2, 2} : m_editBorderSize[i];
+ RECT cur = c->GetBorderSize();
+ bool sameSize = cur.left == wantSize.left && cur.top == wantSize.top &&
+ cur.right == wantSize.right && cur.bottom == wantSize.bottom;
+ if (c->GetBorderColor() != want || !sameSize) {
c->SetBorderColor(want);
- c->SetBorderSize(on ? 2 : 1);
+ c->SetBorderSize(wantSize);
c->Invalidate();
}
}
@@ -1789,6 +1796,7 @@ public:
for (int i = 0; i < 15; i++) {
CControlUI *c = m_pm.FindControl(U8(names[i]).c_str());
m_editBorder[i] = c ? c->GetBorderColor() : 0;
+ m_editBorderSize[i] = c ? c->GetBorderSize() : RECT{0, 0, 0, 0};
}
}
@@ -1861,6 +1869,8 @@ public:
m_pm.SetDefaultFont(L"Microsoft YaHei UI", 12, false, false, false);
m_pm.AddFont(1, L"Microsoft YaHei UI", 14, true, false, false);
m_pm.AddFont(2, L"Microsoft YaHei UI", 19, true, false, false);
+ // 3 号专给关闭按钮的 ×:默认 12/14/19 三档在大按钮里都显得小而细
+ m_pm.AddFont(3, L"Microsoft YaHei UI", 24, true, false, false);
CDialogBuilder builder;
std::wstring xml = U8(m_skin);
CControlUI *pRoot = builder.Create(xml.c_str(), (UINT)0, NULL, &m_pm);
@@ -1971,6 +1981,10 @@ public:
CPaintManagerUI m_pm;
const char *m_skin;
DWORD m_editBorder[15] = {0};
+ // 皮肤里 Edit 不写 bordersize,默认就是 0(不画边框)。
+ // 聚焦时为了突出,代码会临时把边框加到 2px;失焦时必须还原成各自原始的
+ // RECT,否则会凭空留下一圈 1px 深灰边 —— 深色皮肤上看着就是「输入框里有黑框」。
+ RECT m_editBorderSize[15] = {0};
int m_chromeH = 0; // 除面板外的固定高度(标题栏 + tab 行 + 页脚)
int m_iWidth = 0;
int m_iMinH = 380;
diff --git a/shell/duilib/skins_v4.h b/shell/duilib/skins_v4.h
index 4c48adf..5013a73 100644
--- a/shell/duilib/skins_v4.h
+++ b/shell/duilib/skins_v4.h
@@ -7,7 +7,7 @@ static const char *kSkin_dark = R"SKIN(
-
+
@@ -214,7 +214,7 @@ static const char *kSkin_light = R"SKIN(
-
+
@@ -430,7 +430,7 @@ static const char *kSkin_split = R"SKIN(
-
+
@@ -622,7 +622,7 @@ static const char *kSkin_card = R"SKIN(
-
+
@@ -832,7 +832,7 @@ static const char *kSkin_industrial = R"SKIN(
-
+
@@ -1020,7 +1020,7 @@ static const char *kSkin_terminal = R"SKIN(
-
+
@@ -1215,7 +1215,7 @@ static const char *kSkin_compact = R"SKIN(
-
+