fix(client): 真机字体改回系统默认(PingFang,对齐原型) + 原型去新增入库
- themes.dart 不再全局强制 NotoSansSC:真机用系统字体(macOS/iOS=PingFang SC, 与原型 --font 一致),消除真机字体偏离原型;Noto 仅 golden 测试加载(CI 无中文字体) - 原型 inventory.html 同步去掉「新增入库」按钮,与代码保持一致 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TSKEiHsvauyxYUW2itzUXX
This commit is contained in:
@@ -48,7 +48,6 @@
|
||||
<div class="actions">
|
||||
<div class="btn ghost" id="colBtn"><svg viewBox="0 0 24 24"><use href="#i-ic21"/></svg>列设置</div>
|
||||
<div class="btn ghost" onclick="toast('已导出当前筛选结果 ✓')"><svg viewBox="0 0 24 24"><use href="#i-download"/></svg>导出</div>
|
||||
<div class="btn primary" onclick="openStockIn()"><svg viewBox="0 0 24 24"><use href="#i-plus"/></svg>新增入库</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="kpis">
|
||||
|
||||
@@ -18,8 +18,8 @@ ThemeData buildTheme(String key) {
|
||||
brightness: brightness,
|
||||
colorScheme: scheme,
|
||||
scaffoldBackgroundColor: t.bg,
|
||||
// 全平台统一中文字体(与原型截图、golden 保真 diff 一致);打包内置。
|
||||
fontFamily: 'NotoSansSC',
|
||||
// 字体走系统默认(macOS/iOS=PingFang SC,与原型 --font 一致);不强制 Noto。
|
||||
// Noto 仅 golden 测试加载(CI 无中文字体),见 test/support/golden_harness.dart。
|
||||
extensions: <ThemeExtension<dynamic>>[t],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user