Skip to content

Commit 9630ee1

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
fix: fix dock window shadow animation issue
1. Replaced problematic windowEffect approach with direct shadowColor control 2. Set shadow color to transparent during hideShowAnimation to avoid visual artifacts 3. Maintain proper shadow opacity (60% black) when animation is not running 4. Fixes the bug where window shadows would persist incorrectly after animations fix: 修复任务栏窗口阴影动画问题 1. 用直接的阴影颜色控制替换有问题的 windowEffect 方法 2. 在 hideShowAnimation 期间将阴影颜色设置为透明以避免视觉伪影 3. 在动画未运行时保持正确的阴影不透明度(60%黑色) 4. 修复动画后窗口阴影错误持续存在的问题 Pms: BUG-317241
1 parent f4e82cf commit 9630ee1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

panels/dock/package/main.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ Window {
5959

6060
D.DWindow.enabled: true
6161
D.DWindow.windowRadius: 0
62-
//TODO:由于windoweffect处理有BUG,导致动画结束后一致保持无阴影,无borderwidth状态。(所以未取消阴影)
63-
//目前在动画结束后还存在阴影残留
62+
//TODO:由于windoweffect处理有BUG,导致动画结束后一致保持无阴影,无borderwidth状态。 无法恢复到最初的阴影和边框
6463
//D.DWindow.windowEffect: hideShowAnimation.running ? D.PlatformHandle.EffectNoShadow | D.PlatformHandle.EffectNoBorder : 0
64+
65+
//目前直接处理shadowColor(透明和默认值的切换)和borderWidth(0和1的切换),来控制阴影和边框
66+
D.DWindow.shadowColor: hideShowAnimation.running ? Qt.rgba(0,0,0,0) : Qt.rgba(0,0,0,255 * 0.6)
6567
D.DWindow.borderWidth: hideShowAnimation.running ? 0 : 1
6668
D.DWindow.enableBlurWindow: Qt.platform.pluginName !== "xcb"
6769
D.DWindow.themeType: Panel.colorTheme

0 commit comments

Comments
 (0)