-
Notifications
You must be signed in to change notification settings - Fork 43
feat: add connector line to alert tooltip #534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1. Added BoxShadow component with connector styling to AlertToolTip 2. Implemented connector line that visually connects tooltip to target element 3. Positioned connector above tooltip with proper spacing and margins 4. Enhanced border opacity from 0.05 to 0.1 for better visibility 5. Updated connector background color in dark mode to solid dark gray (RGB 51,51,51) Log: Added visual connector line between alert tooltips and their target elements Influence: 1. Test alert tooltip display with connector line visible 2. Verify connector positioning relative to tooltip and target element 3. Check connector appearance in both light and dark themes 4. Validate connector styling including shadow, border, and colors 5. Test tooltip animations with the new connector element 6. Ensure connector doesn't interfere with tooltip functionality feat: 为警告提示工具添加连接线 1. 在 AlertToolTip 中添加了带有连接器样式的 BoxShadow 组件 2. 实现了视觉上连接工具提示和目标元素的连接线 3. 使用适当的间距和边距将连接线定位在工具提示上方 4. 将边框不透明度从 0.05 增加到 0.1 以提高可见性 5. 在深色模式下更新连接器背景颜色为纯深灰色 (RGB 51,51,51) Log: 在警告提示工具与其目标元素之间添加了视觉连接线 Influence: 1. 测试带有连接线的警告提示工具显示 2. 验证连接线相对于工具提示和目标元素的定位 3. 检查连接线在浅色和深色主题下的外观 4. 验证连接线样式包括阴影、边框和颜色 5. 测试带有新连接线元素的工具提示动画 6. 确保连接线不会干扰工具提示功能 PMS: BUG-334879
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#534
Reviewer's GuideThis PR extends the AlertToolTip QML component by injecting a styled BoxShadow “connector” element above the tooltip to visually link it to its target, and adjusts palette definitions for improved border visibility and dark-mode styling. Entity relationship diagram for updated FlowStyle palette propertieserDiagram
PALETTE {
normal real
normalDark real
}
ALERT_TOOLTIP {
connectorBackground PALETTE
connecterdropShadow PALETTE
}
FLOW_STYLE {
border PALETTE
alertToolTip ALERT_TOOLTIP
}
FLOW_STYLE ||--|{ ALERT_TOOLTIP : contains
ALERT_TOOLTIP ||--|{ PALETTE : uses
Class diagram for updated AlertToolTip and BoxShadow connectorclassDiagram
class AlertToolTip {
+BoxShadow line
// Tooltip logic and animations
}
class BoxShadow {
+dropShadowColor: D.Palette
+backgroundColor: D.Palette
+borderColor: D.Palette
+y: number
+width: number
+height: number
+shadowBlur: number
+shadowOffsetY: number
+shadowColor: color
+cornerRadius: number
}
class Rectangle {
+color: color
+border.color: color
+border.width: number
}
AlertToolTip "1" -- "1" BoxShadow : contains
BoxShadow "1" -- "1" Rectangle : contains
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review代码审查报告:AlertToolTip.qml 和 FlowStyle.qmlAlertToolTip.qml 分析语法逻辑
代码质量
代码性能
代码安全
改进建议
FlowStyle.qml 分析语法逻辑
代码质量
代码性能
代码安全
改进建议
总体而言,这两处修改主要是视觉样式的调整,语法上没有明显问题。但建议增加适当的注释,并统一代码风格,以提高代码的可维护性和可读性。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, BLumia 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 |
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#534
element
(RGB 51,51,51)
Log: Added visual connector line between alert tooltips and their target
elements
Influence:
feat: 为警告提示工具添加连接线
Log: 在警告提示工具与其目标元素之间添加了视觉连接线
Influence:
PMS: BUG-334879
Summary by Sourcery
Implement a visual connector line for alert tooltips and adjust related styling
New Features:
Enhancements: