fix(app-iced): 复审 r2 三条收口(M237)
- P1-1 判据会让 CI 一亮红:`java_shot.rs` 原来写「没喂图时 `assert!(CI 未设置)`」, 而 `.github/workflows/ci.yml` 的 test 作业在 ubuntu + windows 上都跑 `cargo test --workspace --all-targets`,出图步骤只给 `options_shot` 备了 `ULL_DL_*_SHOT` (本判据的图不在出图清单里)⇒ `CI=true` 实测 exit 101,一合即红。改成:没喂图**一律响亮跳过** (`not_fed()` + CI 时多一句「本仓 CI 不出这张图,跳过是预期」),模块文档写清「要让它守门需要 跨 scope 加出图步骤 + 注入 `ULL_M237_JAVA_SHOT`,以及那时该怎么改回硬失败」。 自证:`CI=true` 不喂图 → exit 0(改前 101);无 CI 不喂图 → exit 0;喂图(浅/深)→ 真跑,exit 0。 - P2-1 同类错漏一处:实例列表卡画的是 `MaterialLayer::Card`(`instances.rs:263`), 但 `list_row` 的 `ListItem` 没传底 ⇒ 行 hover/按下按 `Base::CANVAS` 合成。 改成 `item.base(frame::BASE)`(同一层,不另立常量),并加进接线守卫。 像素证据(`--force-state=hover`,1180×760 列表卡矩形 `(112,160)-(448,735)` 内 before/after 差): 浅色 57923 px `(232,232,233)→(226,226,227)`,深色 57923 px `(32,38,31)→(35,40,35)` —— 即 hover 8% 从画布底换到卡底。 - 守卫自身升硬:`base_wiring.rs` 的计数原来按整段文本数,**把接线注释掉仍算数**(r2 实测绿)。 改成先剔掉整行 `//` 注释再数;变异自证:注释掉 `item.base(frame::BASE)` ⇒ 红 (`instances.rs: .base(..) 出现 0 次,期望 1 次`,退出码 101),还原后绿。 - 门禁(CARGO_TARGET_DIR=C:/Temp/ull-target/wt-237):fmt 0 / check --all-targets 0 / clippy --workspace --all-targets -D warnings 0 / test -p unlucky-app-iced --lib 907 通过 0 失败 / test --workspace 3344 通过 0 失败。
This commit is contained in:
1 parent
3dcd5fd117
commit
ba441351dd
3 files changed
+71
-10
No files matched your search
@@ -252,6 +252,9 @@ fn list_column<'a>(
|
||||
.style(frame::scroll_style(ui));
|
||||
|
||||
// 底部内缩:裁切线落在卡片的内边距带里,而不是压在圆角描边上(M102 / 视觉复审 ②)。
|
||||
//
|
||||
// M237:这一层画的是 `MaterialLayer::Card`(= `frame::BASE` 的同一个层),所以卡里的
|
||||
// 列表行把底传 `frame::BASE`(见 `list_row`)——不另立常量,避免同一层出现两个「真源」。
|
||||
container(column![head, scroller].height(Length::Fill))
|
||||
.width(Length::Fill)
|
||||
.height(Length::Fill)
|
||||
@@ -312,6 +315,10 @@ fn list_row<'a>(
|
||||
if let Some(state) = forced {
|
||||
item = item.state(state);
|
||||
}
|
||||
// M237 复审 P2-1:列表卡画的是 `MaterialLayer::Card`(本文件 `list_column` 的 style),
|
||||
// 行的 hover / 按下状态层按 `base.role()` 合成(`components/navigation/list_item.rs::palette`),
|
||||
// 不给底就落回 `Base::CANVAS` —— 卡片里的行抬起时会叠在画布色上,与本轮修的禁用态同一类错。
|
||||
item = item.base(frame::BASE);
|
||||
|
||||
list_item(ui, item)
|
||||
}
|
||||
Reference in new issue
Block a user