[0976] 侧边栏联网搜索和深度思考按钮改为纯图标样式 - #4540
Merged
Merged
Conversation
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
主题 CSS 还原不动;由 setDockMode 在 dock/标签页模式切换点统一切换 按钮样式,图标模式下用内联 border: none 覆盖主题边框。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
任务
0976:AI 聊天**侧边栏(dock)**中的「深度思考」「联网搜索」按钮样式改为——没有按钮边框,也没有文字显示,只有图标。Chat 标签页(全屏)中的按钮保持原样(主题边框 + 图标 + 文字)。
改动说明
同一个
QTChatTabWidget会在标签页 ↔ dock 侧边栏之间复用并被 reparent,因此在模式切换点统一切换按钮样式:src/Plugins/Qt/qt_chat_tab_widget.cpp/.hpptoggle_btn_qss (iconOnly, btnH):纯图标模式显式border: none(按钮内联样式优先级高于主题 CSS,覆盖主题边框);文字模式不声明 border,沿用主题 CSS。ChatConversationPanel::setToggleButtonsIconOnly:切换两个按钮的ToolButtonStyle(IconOnly / TextBesideIcon)与内联样式。QTChatTabWidget::setDockMode+dockMode_:对已有面板立即生效,createPanel对新建面板沿用当前模式。make_toggle_btn默认仍为文字模式;文字同时设为 tooltip,纯图标模式下悬停可辨认按钮含义。src/Plugins/Qt/qt_tm_widget.cpp:sync_chat_sidebar_mode进入侧边栏时setDockMode (true);sync_chat_tab_mode及侧边栏隐藏路径把控件移出 dock 时setDockMode (false)。liii.css/liii-night.css)不改动。勾选状态反馈保持不变:图标随开/关切换(
qproperty-iconNormal/iconChecked),checked 态保留背景色区分。验证
gf fmt --changed-since=main:无改动。xmake b --yes stem:构建通过(macOS arm64)。涉及文件
devel/0976.md(任务文档)src/Plugins/Qt/qt_chat_tab_widget.cppsrc/Plugins/Qt/qt_chat_tab_widget.hppsrc/Plugins/Qt/qt_tm_widget.cpp🤖 Generated with Claude Code