From 02a675a07c9ad067288efc2c052ab2e32481919f Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Tue, 20 Oct 2026 12:50:49 +0800 Subject: [PATCH] =?UTF-8?q?docs(plans):=20=E7=95=99=E7=97=95=20K31-C=20?= =?UTF-8?q?=E9=A2=91=E9=81=93=E9=80=89=E4=B8=AD=E6=80=81=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/plans/INBOX.md | 20 ++++++++++++++++++++ docs/plans/PROGRESS.md | 27 +++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/docs/plans/INBOX.md b/docs/plans/INBOX.md index 38b9a65..79e35e9 100644 --- a/docs/plans/INBOX.md +++ b/docs/plans/INBOX.md @@ -1,3 +1,23 @@ +## [已处理] 2026-10-20 | K31-C 首页频道选中态改用主题色(仅 App 端) + +**用户指令(2026-10-20,原文)**: +> 「选中的颜色用主题色啊」 + +**现状**:`lib/pages/home/home_browse_view.dart` 的 `_channelItem()` 中,叠加在轮播图上的选中项文字与下划线都是白色(`Colors.white` / `Colors.white`),未选中为 `Colors.white70`。 + +**口径(只改 Flutter,不动后端、不改接口)** +1. 选中项文字颜色改为主题色 `AppColors.blue`(`AppColors.primary` 同值),叠加在图上与非叠加场景都用主题色;保留文字阴影保证可读性。 +2. 选中项下划线颜色同样改为 `AppColors.blue`。 +3. 未选中项保持现状:图上 `Colors.white70`、非叠加 `AppColors.muted`;字重 w600、字号 15 不变。 +4. 横线尺寸 18×2、圆角 1、间距 4 不变;Key 不变。 +5. 同步更新 `test/home/k28_a_navigation_test.dart` 中选中态颜色断言为主题色。 + +**测试/门禁**:`dart analyze lib test` 零告警 + `flutter test` 全过 + `flutter build apk --debug`。 + +**流程**:从 `develop` 拉 `fix/flutter-k31-channel-accent`;作者 `Zhou Weidong <502333560@qq.com>`;`--no-ff` 合回 develop 并 push;PROGRESS 留痕;真机验收由用户执行。 + +--- + ## [已处理] 2026-10-20 | K31-B 首页频道悬浮轮播图 + 轮播全宽直角 + 频道下划线选中(仅 App 端) **用户指令(2026-10-20,原文)**: diff --git a/docs/plans/PROGRESS.md b/docs/plans/PROGRESS.md index 9494a91..b94b906 100644 --- a/docs/plans/PROGRESS.md +++ b/docs/plans/PROGRESS.md @@ -20336,3 +20336,30 @@ Running Gradle task 'assembleDebug'... ``` 解读:静态检查零告警,401 条测试全部通过,debug APK 构建成功。工作区原有 `pubspec.lock` 变更未纳入本批提交。真机验收由用户执行。 + +## 2026-10-20 ReelShort:K31-C 首页频道选中态改主题色 + +- 分支:`fix/flutter-k31-channel-accent` +- 功能提交:`0e48c07 fix(flutter): 首页频道选中态改用主题色` +- develop 合并提交:`cfc41ef merge: 合并 K31-C 频道选中态主题色`,已推送。 +- `_channelItem()`:选中项文字与下划线统一为 `AppColors.blue`(叠加图上与非叠加场景一致),文字阴影保留;未选中保持图上 `white70` / 非叠加 `muted`,字重 w600、字号 15 不变。 +- 横线 18×2、圆角 1、间距 4 与所有 Key 不变;其它布局未动。 +- 测试同步:`should_switch_home_channel_when_underline_tab_is_tapped` 的选中态断言改为 `AppColors.blue`(文字与横线),并补充切换后未选中项回到 white70。 + +门禁原始输出: + +```text +$ dart analyze lib test +Analyzing lib, test... +No issues found! + +$ flutter test +00:36 +401: All tests passed! + +$ flutter build apk --debug +Running Gradle task 'assembleDebug'... + 7.0s +✓ Built build/app/outputs/flutter-apk/app-debug.apk +``` + +解读:静态检查零告警,401 条测试全部通过,debug APK 构建成功。工作区原有 `pubspec.lock` 变更未纳入本批提交。真机验收由用户执行。