feat(ui): 迁移 StyleDesignerTab + TaskQueueWidget 样式
- StyleDesignerTab 删 8 处 inline setStyleSheet:
- 主按钮"生成珠宝图片" variant=primary(统一两个 tab 的视觉权重)
- 随机/恢复按钮去硬编码颜色,恢复按钮 variant=ghost
- 各 caption label 用 role=caption(统一字号)
- prompt_group 的 font-size:16px inline 删除
- result_label 用 #previewImage objectName + has_image property 切换
- 类内补 _set_status helper(之前批量替换时漏了)
- task_queue.py:
- TaskQueueWidget 用 #taskQueueSidebar objectName,
顶部新增 #sidebarHeader 40px header bar,
与主区 TabBar 视觉同高 — 修复"任务队列"标题飘到 tab 旁边的视觉断层
- 删除 list/widget 内嵌 stylesheet,全部走全局主题
- QListWidgetItem 状态色(橙/蓝/绿/红/灰)改用 theme.get_color() 读当前
主题 token,浅深模式都对
- theme.py 新增 get_color(token, fallback) 公共函数:
用于 widget 内嵌颜色调用(如 setForeground 等 QSS 命中不到的渲染层 API)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Showing
3 changed files
with
86 additions
and
120 deletions
-
Please register or sign in to post a comment