fix: remove scale and opacity animations from task manager transitions#1475
fix: remove scale and opacity animations from task manager transitions#1475deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
Conversation
Removed scale and opacity animations from the add, addDisplaced, and removeDisplaced transitions in the task manager QML file. These animations were causing visual glitches and performance issues when tasks were added, moved, or removed from the taskbar. The position animations (x,y) with easing are preserved to maintain smooth movement transitions while eliminating the problematic scaling and fading effects that were not working correctly. Influence: 1. Test adding new tasks to the taskbar to ensure smooth appearance without visual glitches 2. Test moving tasks around in the taskbar to verify smooth repositioning 3. Test removing tasks from the taskbar to confirm clean disappearance 4. Verify overall task manager performance during task operations 5. Check that task icons maintain proper visual state during all transitions fix: 移除任务管理器过渡动画中的缩放和透明度效果 从任务管理器QML文件的添加、添加时位移和移除时位移过渡动画中移除了缩放和 透明度动画。这些动画在任务被添加到任务栏、移动或移除时会导致视觉故障和性 能问题。保留了带有缓动效果的位置动画(x,y)以维持平滑的移动过渡,同时消 除了工作不正确的缩放和淡入淡出效果。 Influence: 1. 测试向任务栏添加新任务,确保平滑显示且无视觉故障 2. 测试在任务栏中移动任务,验证平滑重新定位 3. 测试从任务栏移除任务,确认干净的消失效果 4. 验证任务操作期间任务管理器的整体性能 5. 检查任务图标在所有过渡期间是否保持正确的视觉状态
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wjyrich 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 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR simplifies the task manager’s QML transitions by removing scale and opacity NumberAnimations from add, addDisplaced, and removeDisplaced transitions, leaving only position (x,y) animations with easing to avoid visual glitches and improve performance. Flow diagram for updated TaskManager QML transitions without scale and opacityflowchart TD
A["Task_added_to_model"] --> B["add_transition_triggered"]
B --> C["NumberAnimation_for_position_x_y_with_Easing_OutQuad"]
C --> D["Task_icon_visible_with_default_scale_and_opacity"]
E["Task_repositioned_in_model"] --> F["addDisplaced_or_moveDisplaced_transition_triggered"]
F --> G["NumberAnimation_for_position_x_y_with_Easing_OutQuad"]
G --> H["Task_icons_reordered_smoothly"]
I["Task_removed_from_model"] --> J["removeDisplaced_transition_triggered"]
J --> K["NumberAnimation_for_position_x_y_with_Easing_OutQuad"]
K --> L["Task_icon_removed_without_extra_visual_effects"]
subgraph Removed_animations_in_this_PR
M["NumberAnimation_for_scale"]
N["NumberAnimation_for_opacity"]
end
B -.no_longer_present.-> M
B -.no_longer_present.-> N
F -.no_longer_present.-> M
F -.no_longer_present.-> N
J -.no_longer_present.-> M
J -.no_longer_present.-> N
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这段代码修改主要涉及 QML 中的 以下是对该 diff 的详细审查和改进意见: 1. 语法逻辑审查
2. 代码质量审查
3. 代码性能审查
4. 代码安全审查
综合改进建议虽然移除动画可以提升性能,但可能会影响用户体验(UI 变得不够生动)。为了平衡性能和视觉效果,建议考虑以下改进方案: 建议 1:使用 Behavior 替代 Transition(推荐) // 在 Delegate 组件内部
Rectangle { // 或其他委托项根元素
id: delegateRoot
// 默认状态
scale: 1
opacity: 1
// 定义行为:当 scale 或 opacity 改变时,自动应用动画
Behavior on scale {
NumberAnimation { duration: 200; easing.type: Easing.OutQuad }
}
Behavior on opacity {
NumberAnimation { duration: 200; easing.type: Easing.OutQuad }
}
// ... 其他内容
}建议 2:确认移除的必要性 总结: |
|
/forcemerge |
|
This pr force merged! (status: unknown) |
Removed scale and opacity animations from the add, addDisplaced, and removeDisplaced transitions in the task manager QML file. These animations were causing visual glitches and performance issues when tasks were added, moved, or removed from the taskbar. The position animations (x,y) with easing are preserved to maintain smooth movement transitions while eliminating the problematic scaling and fading effects that were not working correctly.
Influence:
fix: 移除任务管理器过渡动画中的缩放和透明度效果
从任务管理器QML文件的添加、添加时位移和移除时位移过渡动画中移除了缩放和
透明度动画。这些动画在任务被添加到任务栏、移动或移除时会导致视觉故障和性
能问题。保留了带有缓动效果的位置动画(x,y)以维持平滑的移动过渡,同时消
除了工作不正确的缩放和淡入淡出效果。
Influence:
Summary by Sourcery
Remove problematic scale and opacity animations from task manager item transitions to improve visual stability and performance.
Bug Fixes: