feat: color title wait status
This commit is contained in:
@@ -1616,3 +1616,30 @@
|
||||
- [x] 计时文案不暗示模型内部完成百分比
|
||||
- [x] 标题生成和图片生成互斥、原有进度/明细行为不回退
|
||||
- [x] 验证:`python -m py_compile src/app/widgets/ai_outfit_panel.py tests/test_ai_outfit_panel.py`、`python tests/test_ai_outfit_panel.py`、离屏启动主窗口通过;全套 `python -m unittest discover -s tests` 仅失败于既有未提交 `packaging/default_config/ai_models.json` 含非空 `api_key`,与本任务无关
|
||||
|
||||
### 19.33 标题等待计时状态颜色 — docs/11 §17.10
|
||||
|
||||
前置阅读:
|
||||
|
||||
- `docs/11-ai-outfit.md`(§17.10)
|
||||
- `src/app/widgets/ai_outfit_panel.py`(`_title_wait_label`、`_set_title_wait_text`、`_finish_title_wait`)
|
||||
- `tests/test_ai_outfit_panel.py`(标题等待计时离屏测试)
|
||||
|
||||
背景:
|
||||
|
||||
标题等待计时 label 已能显示 `等待中 mm:ss / MM:SS`,但纯黑文字在左栏里容易被标题和提示词区域淹没。需要用低干扰状态色提高可见性,但不能做成真实进度或强警告。
|
||||
|
||||
任务:
|
||||
|
||||
- [x] `等待中` 使用信息蓝 `#0078d4`
|
||||
- [x] `写入中` 和纯成功完成使用完成绿 `#107c10`
|
||||
- [x] `生成失败`、`等待超时`、部分失败完成使用错误红 `#c42b1c`
|
||||
- [x] 只改变文字颜色,不增加背景色、闪烁或字号变化
|
||||
- [x] 测试:离屏断言等待、写入、成功、失败状态使用对应颜色
|
||||
|
||||
验收:
|
||||
|
||||
- [x] 长等待时 label 更醒目但不喧宾夺主
|
||||
- [x] 成功/失败状态一眼可辨
|
||||
- [x] 不影响原有等待计时、写回进度和复位行为
|
||||
- [x] 验证:`python -m py_compile src/app/widgets/ai_outfit_panel.py tests/test_ai_outfit_panel.py`、`python tests/test_ai_outfit_panel.py`、离屏启动主窗口通过;全套 `python -m unittest discover -s tests` 仅失败于既有未提交 `packaging/default_config/ai_models.json` 含非空 `api_key`,与本任务无关
|
||||
|
||||
Reference in New Issue
Block a user