docs: update indicator is a hint text, not a red button
Replace the red-dot-on-the-gear treatment with a low-key blue "发现新版本 vX.Y.Z" label to the left of the ⚙ 配置 button (red reads as error; the text is clearer and shows the version). docs/07 §4.3, docs/10 §12 and related wording updated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
|
||||
- `配置` 按钮**不是编号页签**,不参与 `1/2/3` 顺序;样式低调(图标 + 文字,悬停出强调色)。
|
||||
- 点击打开**设置对话框**(`QDialog`,见 4.4),不进入新的内容页(页签栏当前不切换内容面板)。
|
||||
- **有新版本角标**:启动时后台检查到新版,在 `配置` 按钮上点亮红点(文字加「●」、变红加粗),提示用户去设置里更新。**不弹阻塞横幅**(详见 `docs/10` §12)。
|
||||
- **有新版本提示**:启动时后台检查到新版,在 `配置` 按钮**左侧**显示一行低调的蓝色提示文字 `发现新版本 vX.Y.Z`(可点击,点它或点齿轮都进设置)。无更新时该文字隐藏。**不用红色**(红表示错误/危险,而「有新版」是信息);**不弹阻塞横幅**(详见 `docs/10` §12)。
|
||||
|
||||
### 4.4 设置对话框
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
行为与架构:
|
||||
|
||||
- 对话框是**纯 UI**(配置部分):打开时由 `main_window` 注入当前配置值;保存时把新值发回主窗口,由主窗口集中 `save_config`,UI 控件不直接读写配置文件(遵守 `docs/05` 4.12 与 `docs/04` 第 6 节)。下载/暂存经 `services` 层完成(与其它面板调用 service 一致)。
|
||||
- 保存后主窗口重新触发一次更新检查(角标按新配置刷新)。配置写入 `~/.cmbot/config/app_config.json`,启动器下次启动自然读到,两端一致。
|
||||
- 保存后主窗口重新触发一次更新检查(提示文字按新配置刷新)。配置写入 `~/.cmbot/config/app_config.json`,启动器下次启动自然读到,两端一致。
|
||||
- 取消不改动配置。
|
||||
|
||||
## 5. 左侧素材栏
|
||||
|
||||
Reference in New Issue
Block a user