fix(client): 节点搜索框两色接缝 —— TextField filled:false 让外层 bgSubtle 统一铺底

搜索框是双层:外层容器 c.bgSubtle(灰)+ 内层 TextField 继承主题 filled:true/
fillColor:bg(页面底色)。两色不一致 → 图标与左右内边距露出 bgSubtle、中间是 bg,
出现两端灰中间另一色的接缝。kBareInput 当初只压了边框、没动 filled(注释写明为避免
改 golden),遗留此泄漏。搜索框 decoration 加 filled:false,底色统一交给外层容器。
重生成 4 个节点页 golden(desktop/tablet × dark/light/zh/en)。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-29 12:10:32 +08:00
parent ddf8b1d4d8
commit ccb7a9bfe7
5 changed files with 3 additions and 0 deletions
+3
View File
@@ -207,7 +207,10 @@ class _SearchBox extends StatelessWidget {
style: PangolinText.sm.copyWith(color: c.fg1, fontSize: 15),
// kBareInput 关掉主题 inputDecorationTheme 的边框/填充泄漏(否则聚焦时
// 橙色 OutlineInputBorder 会画到内层 TextField 上、与搜索框圆角错位/被裁)。
// filled:false 关掉主题的 fillColor=bg 填充——否则内层 TextField 用 bg 铺底,
// 与外层 bgSubtle 容器两色不一致(图标/左右内边距露出 bgSubtle、中间是 bg)。
decoration: kBareInput.copyWith(
filled: false,
contentPadding: const EdgeInsets.symmetric(vertical: 12),
hintText: hint,
hintStyle: PangolinText.sm.copyWith(color: c.fg3, fontSize: 15),
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB