Repository navigation
fix(edit): use 60% alpha for focus border - #733
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe Qt6 EditPanel focus border now renders the palette highlight color at 60% opacity, while the shared border component and other controls retain full opacity. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
| active: control.activeFocus | ||
| sourceComponent: FocusBoxBorder { | ||
| color: control.palette.highlight | ||
| color: Qt.alpha(control.palette.highlight, 0.6) |
There was a problem hiding this comment.
已改用 DTK 的 makeColor().opacity(-40) 调整为 60% 不透明度,运行时验证聚焦边框颜色为 #99308cc6。
05ec41c to
1deec07
Compare
1. Use the DTK color API to apply 60% alpha to the highlight color used by EditPanel focus borders. 2. Keep FocusBoxBorder unchanged so other focus borders remain fully opaque. 3. Limit the change to the Qt6 EditPanel implementation. Log: Reduce the Qt6 edit focus border alpha to 60%. Influence: Only Qt6 edit controls show a lighter focused border. fix(edit): 输入框聚焦边框使用 60% 不透明度 1. 使用 DTK 颜色接口为 EditPanel 聚焦边框的高亮色应用 60% 不透明度。 2. 保持 FocusBoxBorder 不变,其他聚焦边框仍为全不透明。 3. 仅修改 Qt6 的 EditPanel 实现。 Log: 将 Qt6 输入框聚焦边框不透明度降低为 60%。 Influence: 仅影响 Qt6 输入控件的聚焦边框显示。
1deec07 to
50c7fa6
Compare
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: [] 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: [] 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: [] 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: [] 💡 改进建议代码示例// 当前代码已为最佳实现,无需修改 // qt6/src/qml/EditPanel.qml Loader {
anchors.fill: parent
active: control.activeFocus
sourceComponent: FocusBoxBorder {
color: D.DTK.makeColor(control.palette.highlight).opacity(-40).color()
radius: panel.radius
}
}本报告由 AI 代码审查工具自动生成 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, iCancely The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
fc9cffc
into
linuxdeepin:v25-flowstyle
Summary
EditPanelfocus borders.FocusBoxBorderunchanged so other controls retain full opacity.Test
0.6at runtime.摘要
EditPanel聚焦边框使用的高亮色应用 60% 不透明度。FocusBoxBorder不变,其他控件仍为全不透明。测试
0.6。Summary by Sourcery
Bug Fixes: