fix(diary): B7 测试套件 + F11 深色模式修复

B7 API 打磨:
- DTO 序列化/反序列化测试 12 个 (Mood/Weather/SyncChange/NotificationType等)
- 测试总数 17 → 29,全部通过
- SyncChange 添加 Serialize derive (测试发现遗漏)

F11 深色模式:
- 修复 mood_page.dart 唯一硬编码颜色 Colors.white → colorScheme.onPrimary
- 全面审计确认所有页面均使用 AppColors/colorScheme,无其他硬编码

验证: cargo test 29/29 ✓ flutter analyze 0 error ✓
This commit is contained in:
iven
2026-06-01 10:07:44 +08:00
parent c4a317c90f
commit 05317d50d5
2 changed files with 150 additions and 3 deletions

View File

@@ -213,10 +213,10 @@ class _MoodDistributionChart extends StatelessWidget {
color: color,
radius: 50,
title: '${mc.percentage.toStringAsFixed(0)}%',
titleStyle: const TextStyle(
titleStyle: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: Colors.white,
color: colorScheme.onPrimary,
),
);
}).toList(),