refactor(gui): remove duplicate app header title

This commit is contained in:
chengma
2026-07-23 14:43:20 +08:00
parent e079a65909
commit 08f0bff1fa
4 changed files with 25 additions and 11 deletions
+5 -2
View File
@@ -3,7 +3,7 @@ id: T-697
title: 移除主窗口应用内重复标题
phase: 7
deps: [T-696]
status: TODO
status: DONE
created: 2026-07-23
---
@@ -45,4 +45,7 @@ Windows 原生标题必须保留,用于窗口识别、任务栏/Alt+Tab 展示
## 执行记录
- 待实现。
- 2026-07-23:保留 `MainWindow.setWindowTitle(display_name())` 与窗口图标,移除应用内 `_header_title_label`、`appHeaderTitle` 和对应字体样式,Tabs 上方不再重复显示应用名称。
- `appHeader` 改为只承载右对齐会员状态的轻量区域,增加“会员状态栏”无障碍名称;上下边距从 `8/4` 收紧为 `4/2`,不设置固定高度,保留字体和 DPI 自适应。
- 更新路由文档和 GUI 回归测试,覆盖系统窗口标题、重复标题不存在、会员状态标签保留、状态栏对象语义与边距。
- 验证通过:主窗口定向 GUI 测试 3 项、`py -3.10 -m unittest discover -s tests`(682 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check`。