-
Notifications
You must be signed in to change notification settings - Fork 55
fix: modify when keep hiden animation has launched, has shadow and line. #1158
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
Reviewer's GuideIntroduce conditional logic to D.DWindow properties in the dock panel to remove its shadow and border while the hide/show animation is active, preventing visual artifacts. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @wjyrich - I've reviewed your changes - here's some feedback:
- Consider extracting the
hideShowAnimation.runningcondition into a dedicated property (e.g.,isAnimating) to avoid duplicating logic and improve readability. - Replace the numeric literal
0forwindowEffectwith the corresponding named enum/constant to make the default effect clearer.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider extracting the `hideShowAnimation.running` condition into a dedicated property (e.g., `isAnimating`) to avoid duplicating logic and improve readability.
- Replace the numeric literal `0` for `windowEffect` with the corresponding named enum/constant to make the default effect clearer.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
panels/dock/package/main.qml
Outdated
| D.DWindow.enabled: true | ||
| D.DWindow.windowRadius: 0 | ||
| D.DWindow.borderWidth: 1 | ||
| //D.DWindow.windowEffect: hideShowAnimation.running ? D.PlatformHandle.EffectNoShadow : 0 |
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.
是不是推错了?
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.
也不是, 因为windoweffect没有效果 想着kwin修复了 再修改,我去备注一下
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.
as title. PMS-BUG-313787
deepin pr auto review关键摘要:
是否建议立即修改:
合并相似的问题:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, 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 |
|
TAG Bot New tag: 2.0.0 |
|
TAG Bot New tag: 2.0.1 |
|
/forcemerge |
|
This pr force merged! (status: behind) |
as title.
PMS-BUG-313787
Summary by Sourcery
Disable window shadow and border during the dock hide/show animation
Bug Fixes: