feat(app-iced): 下载页在选 LiteLoader 时给中性说明(GUI 只叠原版、Forge 组合走 CLI)

新增 Key::DownloadOptionsLiteLoaderVanillaOnly(中英各一句,不含花括号占位符);
金表按 Key::ALL 的真实位置插入(DownloadOptionsNeedsAtLeast 之后、DownloadCancelled 之前),
只加新键不重排旧键。说明走 OptionsView 的新字段 note,不塞 problem(那是错误色 + 禁用确认)。
This commit is contained in:
AskaEth committed 2026-11-10 19:34:10 +08:00
1 parent 7ed954f7fa
commit c8bf536c37
5 files changed
+91

No files matched your search

@@ -93,6 +93,18 @@ pub(crate) fn section<'a>(
.spacing(ui.space(Space::X2))
.width(Length::Fill);
// 中性说明(M222):只解释这一页能装到哪一层,不套错误色、不影响确认键。
// 换行由 iced 的文本布局负责,长句不会横向溢出;但**视觉验收仍需截图确认**(D30)。
if let Some(note) = &options.note {
body = body.push(frame::text_role(
ui,
TypeRole::BodySmall,
false,
note.as_str(),
ui.color(Role::OnSurfaceVariant),
));
}
// 「加载器版本」这一段只在**真该有列表**时出现:原版没有、静态不兼容没有(原因在下面那行)、
// 取不到也没有(同样在原因行)。留一个空标题只会让人以为界面缺了一块。
if show_versions(options) {