Repository navigation
fix(dock): fix window size and radius during dock animation (u3) - #1847
Conversation
1. Relax window minimum size to 1 unless dragging so the dock can shrink while hiding. 2. Allow minimum width to shrink when fashion dock mode is enabled. 3. Reset window radius to 0 on xcb during hide/show animations to avoid KWin whole-window blur. 4. Enable transform-based animation on xcb regardless of fashion dock mode. Log: Fix dock window size and radius handling during hide/show animations Influence: Smoother dock animations without blur artifacts on xcb fix(dock): 修复动画过程中窗口尺寸与圆角处理 1. 窗口最小尺寸在非拖拽时放宽为 1,使停靠栏隐藏时可收缩。 2. 时尚模式启用时允许最小宽度收缩。 3. xcb 下隐藏/显示动画期间将窗口圆角重置为 0,避免 KWin 整窗模糊。 4. xcb 下无论是否开启时尚模式都启用基于变换的动画。 Log: 修复停靠栏隐藏/显示动画期间的窗口尺寸与圆角处理 Influence: xcb 下停靠栏动画更流畅且无模糊残影 PMS: TASK-384075 (cherry picked from commit 1959365)
Reviewer's GuideUIRelax the dock window’s minimum dimensions while idle and in fashion mode so it can shrink during hide animations, and switch XCB to transform-based animation while temporarily clearing the native radius to avoid whole-window blur.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MyLeeJiEun, 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 |
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="panels/dock/package/main.qml" line_range="216" />
<code_context>
// Currently, Wayland (Treeland) doesn't support StyledBehindWindowBlur inside the window, thus we keep using the window size approach on Wayland
- property bool useTransformBasedAnimation: Qt.platform.pluginName === "xcb" && !fashionDock.enabled
+ property bool useTransformBasedAnimation: Qt.platform.pluginName === "xcb"
property bool hiding: false
target: useTransformBasedAnimation ? dockTransform : dock;
property: {
</code_context>
<issue_to_address>
**Animation leaves a visible strip**
When the dock is in fashion mode on XCB and a hide or show animation runs, `hideShowAnimation` now translates the fashion dock by only `Panel.dockSize`, while its top or bottom window margin is 8 px. The translated content therefore still overlaps the screen by 8 px during the final hide frame and the initial show frame, producing a visible strip before the dock is hidden or fully restored.
Include `fashionDock.floatingMargin` in the transform offset when fashion mode is enabled.
</issue_to_address>| // Currently, Wayland (Treeland) doesn't support StyledBehindWindowBlur inside the window, thus we keep using the window size approach on Wayland | ||
| property bool useTransformBasedAnimation: Qt.platform.pluginName === "xcb" && !fashionDock.enabled | ||
| property bool useTransformBasedAnimation: Qt.platform.pluginName === "xcb" | ||
| property bool hiding: false |
There was a problem hiding this comment.
⚪ Low · Animation leaves a visible strip
When the dock is in fashion mode on XCB and a hide or show animation runs, hideShowAnimation now translates the fashion dock by only Panel.dockSize, while its top or bottom window margin is 8 px. The translated content therefore still overlaps the screen by 8 px during the final hide frame and the initial show frame, producing a visible strip before the dock is hidden or fully restored.
Include fashionDock.floatingMargin in the transform offset when fashion mode is enabled.
Prompt for AI agents
In `panels/dock/package/main.qml` at line 216:
**Animation leaves a visible strip**
When the dock is in fashion mode on XCB and a hide or show animation runs, `hideShowAnimation` now translates the fashion dock by only `Panel.dockSize`, while its top or bottom window margin is 8 px. The translated content therefore still overlaps the screen by 8 px during the final hide frame and the initial show frame, producing a visible strip before the dock is hidden or fully restored.
Include `fashionDock.floatingMargin` in the transform offset when fashion mode is enabled.
|
Backport #1846 to
develop/2500u3to fix dock window sizing and rounded corners during show/hide animations.Relax minimum-size constraints while idle, allow horizontal resizing in fashion mode, reset the native window radius during XCB animations to avoid whole-window blur, and enable transform-based animation for the fashion dock on XCB.
Source commit:
1959365d688bea89529ea3efc742458bd9577969.Cherry-picked with
-xwithout conflicts; the stable patch ID matches the source commit.Validation: patch consistency and
git diff --checkpassed. CMake configuration, builds, and tests were skipped as requested.将 #1846 无冲突回移到
develop/2500u3,修复任务栏显示/隐藏动画中的窗口尺寸与圆角处理。补丁与原提交一致,按要求未运行 CMake、编译及测试。Log: 修复任务栏显示/隐藏动画时的窗口尺寸与圆角问题
Influence: 时尚模式任务栏动画更流畅,尺寸与圆角显示正确
PMS: BUG-384075
Summary by Sourcery
Fix dock animation sizing, corner rendering, and motion behavior across supported XCB modes.
Bug Fixes:
Enhancements: