Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions panels/dock/package/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ Window {
color: "transparent"
flags: Qt.WindowDoesNotAcceptFocus
maximumHeight: useColumnLayout ? Screen.height : Dock.MAX_DOCK_SIZE
minimumHeight: useColumnLayout? Screen.height : Dock.MIN_DOCK_SIZE
minimumHeight: useColumnLayout ? Screen.height : (isDragging ? Dock.MIN_DOCK_SIZE : 1)
maximumWidth: useColumnLayout ? Dock.MAX_DOCK_SIZE : Screen.width
minimumWidth: useColumnLayout ? Dock.MIN_DOCK_SIZE : Screen.width
minimumWidth: useColumnLayout ? (isDragging ? Dock.MIN_DOCK_SIZE : 1)
: (fashionDock.enabled ? 1 : Screen.width)

function blendColorAlpha(fallback) {
var appearance = DS.applet("org.deepin.ds.dde-appearance")
Expand Down Expand Up @@ -156,7 +157,20 @@ Window {
DLayerShellWindow.keyboardInteractivity: DLayerShellWindow.KeyboardInteractivityNone

D.DWindow.enabled: true
D.DWindow.windowRadius: fashionDock.enabled ? fashionDock.backgroundRadius : 0
D.DWindow.windowRadius: {
if (!fashionDock.enabled)
return 0

// KWin can turn a rounded window's local blur region into whole-window
// blur. Restore the native radius only after the content is back in place;
// StyledBehindWindowBlur keeps its own rounded corners during animation.
if (Qt.platform.pluginName === "xcb"
&& (hideShowAnimation.running || dockAnimation.running
|| dockTransform.x !== 0 || dockTransform.y !== 0))
return 0

return fashionDock.backgroundRadius
}
//TODO:由于windoweffect处理有BUG,导致动画结束后一致保持无阴影,无borderwidth状态。 无法恢复到最初的阴影和边框
//D.DWindow.windowEffect: hideShowAnimation.running ? D.PlatformHandle.EffectNoShadow | D.PlatformHandle.EffectNoBorder : 0

Expand Down Expand Up @@ -198,7 +212,7 @@ Window {
PropertyAnimation {
id: hideShowAnimation;
// 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ 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.

target: useTransformBasedAnimation ? dockTransform : dock;
property: {
Expand Down
Loading