style: unify GUI button radius
This commit is contained in:
@@ -1254,3 +1254,12 @@
|
||||
- 边界:封面生成和图片下载继续按分辨率读取等待;direct 兼容路径不变;未改配置 schema、cmhub HTTP 协议、DB、Excel、Shopee/CDP 或 GUI 交互。
|
||||
- 测试:`tests/test_ai.py` 更新 cmhub 标题请求 timeout 断言为 `(connect_timeout, 600)`。
|
||||
- 验证:`python -m py_compile app\ai.py tests\test_ai.py` 通过;`python -m unittest discover -s tests -p test_ai.py` 通过(24 tests);`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(212 tests)。
|
||||
|
||||
## 【2026-07-07】T-536 完成 · GUI 按钮圆角全局统一
|
||||
|
||||
- 状态:DONE
|
||||
- 文档:`docs/06-tasks.md` 将 T-536 标记为 DONE,`docs/current-state.md` 记录全局按钮基础样式和语义色按钮叠加规则。
|
||||
- 代码:`app/gui/widgets.py` 新增 `BUTTON_BASE_STYLE`、`BUTTON_RADIUS_PX`、`_warning_outline_button_style()` 和共享 `_outline_button_style()`;`MainWindow` 全局应用按钮基础 QSS;③「开始更新」改为 warning 语义色叠加,①「删除批次」/④「删除账号」/①「未匹配」继续复用 danger 语义色叠加。
|
||||
- 边界:只改 GUI 样式层;未改按钮行为、启用/禁用逻辑、DB、Excel、Shopee/CDP 或 AI 流程。
|
||||
- 测试:`tests/test_gui.py` 补充全局 `QPushButton` 基础样式断言,并确认 warning/danger 按钮保留语义色但不再各自硬写 `border-radius`/`padding`。
|
||||
- 验证:`python -m py_compile app\gui\widgets.py app\gui\main_window.py app\gui\tabs\apply.py tests\test_gui.py` 通过;`python -m unittest discover -s tests -p test_gui.py` 通过(95 tests);`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(212 tests)。
|
||||
|
||||
Reference in New Issue
Block a user