Skip to content

feat(dock): add animated transition between classic and fashion modes - #1853

Open
wjyrich wants to merge 1 commit into
linuxdeepin:masterfrom
wjyrich:fix-bug-384085
Open

wjyrich wants to merge 1 commit into
linuxdeepin:masterfrom
wjyrich:fix-bug-384085

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
  1. Introduce DockModeTransition to animate geometry, icons, and card opacity when switching dock modes.
  2. Reparent and fade taskbar cards independently of the destination layout during transitions.
  3. Replace DWindow rounded window with in-content shadow, border, and dynamic radius for full-width windows.
  4. Expose contentGeometry and visualGeometry so D-Bus and X11 report the visible dock rect.
  5. Drive fashionMode state from the transition alignment and gate interactions while animating.

Log: Add an animated transition when switching the dock between classic and fashion modes.
Influence: Dock mode switching becomes smooth and the reported geometry matches visible content.

feat(dock): 新增经典与时尚模式切换动画

  1. 引入 DockModeTransition,在切换 dock 模式时对几何、图标和卡片透明度做 动画。
  2. 过渡期间独立于目标布局重新挂载并淡出任务栏卡片。
  3. 用内容内阴影、边框和动态圆角替代 DWindow 圆角窗口,适配全宽窗口。
  4. 新增 contentGeometry 与 visualGeometry,使 D-Bus 和 X11 上报可见的 dock 区域。
  5. 时尚模式状态由过渡对齐方式驱动,动画期间禁用相关交互。

Log: 为 dock 在经典与时尚模式间切换新增过渡动画。
Influence: 模式切换更平滑,上报的几何区域与可见内容一致。
PMS: BUG-384085

Summary by Sourcery

Smooth dock mode switching with coordinated visual transitions and geometry reporting based on the visible dock content.

New Features:

  • Add animated transitions between classic, centered, and fashion dock modes, including coordinated layout, icon, and taskbar-card opacity changes.

Bug Fixes:

  • Report and position the dock using its visible content bounds so D-Bus, X11, and adjacent UI geometry remain accurate during full-width layouts and transitions.

Enhancements:

  • Render full-width dock shadows, borders, blur, and rounded corners within the content instead of relying on rounded window decoration.
  • Disable dock interactions during mode transitions and synchronize fashion-mode state with the transition state.

1. Introduce DockModeTransition to animate geometry, icons, and card
opacity when switching dock modes.
2. Reparent and fade taskbar cards independently of the destination
layout during transitions.
3. Replace DWindow rounded window with in-content shadow, border, and
dynamic radius for full-width windows.
4. Expose contentGeometry and visualGeometry so D-Bus and X11 report the
visible dock rect.
5. Drive fashionMode state from the transition alignment and gate
interactions while animating.

Log: Add an animated transition when switching the dock between classic
and fashion modes.
Influence: Dock mode switching becomes smooth and the reported geometry
matches visible content.

feat(dock): 新增经典与时尚模式切换动画

1. 引入 DockModeTransition,在切换 dock 模式时对几何、图标和卡片透明度做
动画。
2. 过渡期间独立于目标布局重新挂载并淡出任务栏卡片。
3. 用内容内阴影、边框和动态圆角替代 DWindow 圆角窗口,适配全宽窗口。
4. 新增 contentGeometry 与 visualGeometry,使 D-Bus 和 X11 上报可见的
dock 区域。
5. 时尚模式状态由过渡对齐方式驱动,动画期间禁用相关交互。

Log: 为 dock 在经典与时尚模式间切换新增过渡动画。
Influence: 模式切换更平滑,上报的几何区域与可见内容一致。
PMS: BUG-384085
@deepin-ci-robot

Copy link
Copy Markdown

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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot

deepin-ci-robot commented Nov 24, 2026 •

Copy link
Copy Markdown

⚠️ OBS CI 构建警告日志 (Commit: ca308f74)

提示:以下为 OBS CI 构建中 Lintian 检测到的警告信息,默认折叠,点击展开查看详情。完整日志请参阅对应构建状态链接。

deepin_develop / aarch64 (Lintian 警告: 15 条)
[  931s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  931s] N: 
[  931s] N:   The desktop entry specifies a Command that does not match any of the
[  931s] N:   executables shipped in the package.
[  931s] N:   
[  931s] N:   This condition is often caused by a typo, or the desktop file was not
[  931s] N:   updated after the installed path of the executable was modified.
[  931s] N:   
[  931s] N:   Packages should ship executables that are used as commands in desktop
[  931s] N:   files.
[  931s] N: 
[  931s] N:   Visibility: warning
[  931s] N:   Show-Always: no
[  931s] N:   Check: menu-format
[  931s] N: 
[  931s] N:
[  931s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/aarch64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/aarch64-linux-gnu/libds-notification-shared.so]
[  931s] N: 
[  931s] N:   Although this package is not a "-dev" package, it installs a
[  931s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  931s] N:   library. When the link doesn't include the version number, it is used by
[  931s] N:   the linker when other programs are built against this shared library.
[  931s] N:   
[  931s] N:   Shared libraries are supposed to place such symbolic links in their
[  931s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  931s] N:   library package.
[  931s] N:   
[  931s] N:   However, if this is a small package which includes the runtime and the
[  931s] N:   development libraries, this is not a bug. In the latter case, please
[  931s] N:   override this warning.
[  931s] N: 
[  931s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  931s] N:   Manual for details.
[  931s] N: 
[  931s] N:   Visibility: warning
[  931s] N:   Show-Always: no
[  931s] N:   Check: libraries/shared/links
[  931s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  931s] N: 
[  931s] N:
[  931s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  931s] N: 
[  931s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  931s] N:   a manual page
[  931s] N:   
[  931s] N:   Note that though the man program has the capability to check for several
[  931s] N:   program names in the NAMES section, each of these programs should have its
[  931s] N:   own manual page (a symbolic link to the appropriate manual page is
[  931s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  931s] N:   support this.
[  931s] N:   
[  931s] N:   If the name of the manual page differs from the binary by case, man may be
[  931s] N:   able to find it anyway; however, it is still best practice to match the
[  931s] N:   exact capitalization of the executable in the manual page.
[  931s] N:   
[  931s] N:   If the manual pages are provided by another package on which this package
[  931s] N:   depends, Lintian may not be able to determine that manual pages are
[  931s] N:   available. In this case, after confirming that all binaries do have manual
[  931s] N:   pages after this package and its dependencies are installed, please add a
[  931s] N:   Lintian override.
[  931s] N: 
[  931s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  931s] N:   for details.
[  931s] N: 
[  931s] N:   Visibility: warning
[  931s] N:   Show-Always: no
[  931s] N:   Check: documentation/manual
[  931s] N:   Renamed from: binary-without-manpage
[  931s] N: 
[  931s] N:
[  931s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  931s] N: 
[  931s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  931s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  931s] N:   insensitive).
[  931s] N:   
[  931s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  931s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  931s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  931s] N:   package (not intended for Debian), you can suppress this warning by
[  931s] N:   putting "local" in the version number or "local package" on the first line
[  931s] N:   of the changelog entry.
[  931s] N: 
[  931s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  931s] N:   Developer's Reference for details.
[  931s] N: 
[  931s] N:   Visibility: warning
[  931s] N:   Show-Always: no
[  931s] N:   Check: nmu
[  931s] N:   Renamed from: changelog-should-mention-nmu
[  931s] N: 
[  931s] N:
[  931s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  931s] N: 
[  931s] N:   The package name of a library package should usually reflect the soname of
[  931s] N:   the included library. The package name can determined from the library
[  931s] N:   file name with the following code snippet:
[  931s] N:   
[  931s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  931s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  931s] N: 
[  931s] N:   Visibility: warning
[  931s] N:   Show-Always: no
[  931s] N:   Check: libraries/shared/soname
[  931s] N: 
[  931s] N:
[  931s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  931s] N:
[  931s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  931s] N:
[  931s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u041 [debian/changelog:1]
[  931s] N: 
[  931s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  931s] N:   native package). This is to prevent stealing version numbers from the
[  931s] N:   maintainer.
[  931s] N:   
[  931s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  931s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  931s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  931s] N:   package (not intended for Debian), you can suppress this warning by
[  931s] N:   putting "local" in the version number or "local package" on the first line
[  931s] N:   of the changelog entry.
[  931s] N: 
[  931s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  931s] N:   Developer's Reference for details.
[  931s] N: 
[  931s] N:   Visibility: warning
[  931s] N:   Show-Always: no
[  931s] N:   Check: nmu
[  931s] N: 
[  931s] N:
[  931s] W: dde-shell: unknown-section DDE
[  931s] N: 
[  931s] N:   The "Section:" field in this package's control file is not one of the
[  931s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  931s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  931s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  931s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  931s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  931s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  931s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  931s] N:   
[  931s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  931s] N:   "non-free-firmware/" if the package is in the according archive area.
[  931s] N: 
[  931s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  931s] N:   details.
[  931s] N: 
[  931s] N:   Visibility: warning
[  931s] N:   Show-Always: no
[  931s] N:   Check: fields/section
[  931s] N: 
[  931s] N:
[  931s] W: dde-shell-example: unknown-section DDE
[  931s] N:
[  931s] W: libdde-shell: unknown-section DDE
[  931s] N:
[  931s] W: libdde-shell-dev: unknown-section DDE
[  931s] N:
[  931s] W: libdde-shell-dock: unknown-section DDE
[  931s] N:
[  931s] W: libdde-shell-dock-dev: unknown-section DDE
[  931s] Warning: mkbaselibs missing in build root, skipping baselibs
deepin_develop / x86_64 (Lintian 警告: 15 条)
[  416s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  416s] N: 
[  416s] N:   The desktop entry specifies a Command that does not match any of the
[  416s] N:   executables shipped in the package.
[  416s] N:   
[  416s] N:   This condition is often caused by a typo, or the desktop file was not
[  416s] N:   updated after the installed path of the executable was modified.
[  416s] N:   
[  416s] N:   Packages should ship executables that are used as commands in desktop
[  416s] N:   files.
[  416s] N: 
[  416s] N:   Visibility: warning
[  416s] N:   Show-Always: no
[  416s] N:   Check: menu-format
[  416s] N: 
[  416s] N:
[  416s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/x86_64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/x86_64-linux-gnu/libds-notification-shared.so]
[  416s] N: 
[  416s] N:   Although this package is not a "-dev" package, it installs a
[  416s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  416s] N:   library. When the link doesn't include the version number, it is used by
[  416s] N:   the linker when other programs are built against this shared library.
[  416s] N:   
[  416s] N:   Shared libraries are supposed to place such symbolic links in their
[  416s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  416s] N:   library package.
[  416s] N:   
[  416s] N:   However, if this is a small package which includes the runtime and the
[  416s] N:   development libraries, this is not a bug. In the latter case, please
[  416s] N:   override this warning.
[  416s] N: 
[  416s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  416s] N:   Manual for details.
[  416s] N: 
[  416s] N:   Visibility: warning
[  416s] N:   Show-Always: no
[  416s] N:   Check: libraries/shared/links
[  416s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  416s] N: 
[  416s] N:
[  416s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  416s] N: 
[  416s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  416s] N:   a manual page
[  416s] N:   
[  416s] N:   Note that though the man program has the capability to check for several
[  416s] N:   program names in the NAMES section, each of these programs should have its
[  416s] N:   own manual page (a symbolic link to the appropriate manual page is
[  416s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  416s] N:   support this.
[  416s] N:   
[  416s] N:   If the name of the manual page differs from the binary by case, man may be
[  416s] N:   able to find it anyway; however, it is still best practice to match the
[  416s] N:   exact capitalization of the executable in the manual page.
[  416s] N:   
[  416s] N:   If the manual pages are provided by another package on which this package
[  416s] N:   depends, Lintian may not be able to determine that manual pages are
[  416s] N:   available. In this case, after confirming that all binaries do have manual
[  416s] N:   pages after this package and its dependencies are installed, please add a
[  416s] N:   Lintian override.
[  416s] N: 
[  416s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  416s] N:   for details.
[  416s] N: 
[  416s] N:   Visibility: warning
[  416s] N:   Show-Always: no
[  416s] N:   Check: documentation/manual
[  416s] N:   Renamed from: binary-without-manpage
[  416s] N: 
[  416s] N:
[  416s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  416s] N: 
[  416s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  416s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  416s] N:   insensitive).
[  416s] N:   
[  416s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  416s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  416s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  416s] N:   package (not intended for Debian), you can suppress this warning by
[  416s] N:   putting "local" in the version number or "local package" on the first line
[  416s] N:   of the changelog entry.
[  416s] N: 
[  416s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  416s] N:   Developer's Reference for details.
[  416s] N: 
[  416s] N:   Visibility: warning
[  416s] N:   Show-Always: no
[  416s] N:   Check: nmu
[  416s] N:   Renamed from: changelog-should-mention-nmu
[  416s] N: 
[  416s] N:
[  416s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  416s] N: 
[  416s] N:   The package name of a library package should usually reflect the soname of
[  416s] N:   the included library. The package name can determined from the library
[  416s] N:   file name with the following code snippet:
[  416s] N:   
[  416s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  416s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  416s] N: 
[  416s] N:   Visibility: warning
[  416s] N:   Show-Always: no
[  416s] N:   Check: libraries/shared/soname
[  416s] N: 
[  416s] N:
[  416s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  416s] N:
[  416s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  416s] N:
[  416s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u041 [debian/changelog:1]
[  416s] N: 
[  416s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  416s] N:   native package). This is to prevent stealing version numbers from the
[  416s] N:   maintainer.
[  416s] N:   
[  416s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  416s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  416s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  416s] N:   package (not intended for Debian), you can suppress this warning by
[  416s] N:   putting "local" in the version number or "local package" on the first line
[  416s] N:   of the changelog entry.
[  416s] N: 
[  416s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  416s] N:   Developer's Reference for details.
[  416s] N: 
[  416s] N:   Visibility: warning
[  416s] N:   Show-Always: no
[  416s] N:   Check: nmu
[  416s] N: 
[  416s] N:
[  416s] W: dde-shell: unknown-section DDE
[  416s] N: 
[  416s] N:   The "Section:" field in this package's control file is not one of the
[  416s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  416s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  416s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  416s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  416s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  416s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  416s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  416s] N:   
[  416s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  416s] N:   "non-free-firmware/" if the package is in the according archive area.
[  416s] N: 
[  416s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  416s] N:   details.
[  416s] N: 
[  416s] N:   Visibility: warning
[  416s] N:   Show-Always: no
[  416s] N:   Check: fields/section
[  416s] N: 
[  416s] N:
[  416s] W: dde-shell-example: unknown-section DDE
[  416s] N:
[  416s] W: libdde-shell: unknown-section DDE
[  416s] N:
[  416s] W: libdde-shell-dev: unknown-section DDE
[  416s] N:
[  416s] W: libdde-shell-dock: unknown-section DDE
[  416s] N:
[  416s] W: libdde-shell-dock-dev: unknown-section DDE
[  417s] Warning: mkbaselibs missing in build root, skipping baselibs

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 3 issues

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="839" />
<code_context>
         hoverEnabled: true
         propagateComposedEvents: true
-        enabled: !Panel.locked
+        enabled: !Panel.locked && !modeTransition.active

         cursorShape: {
</code_context>
<issue_to_address>
**Clicks still affect the moving dock**

When the transition is active and the user clicks an icon or the dock background, the transition gates only `dragArea` and the card area, leaving `DockCenterPart` delegates, `dockContainer` TapHandlers, and task-item `MouseArea`s enabled; clicks on moving icons or the dock background launch apps or open and close menus during the intermediate layout.

Disable the delegates, TapHandlers, and task-item MouseAreas while `modeTransition.active`.
</issue_to_address>

### Comment 2
<location path="panels/dock/package/DockModeTransition.qml" line_range="92" />
<code_context>
+            active = true
+            // Use the normal destination layout for centered mode, and the
+            // compact layout for transitions involving classic mode.
+            alignment = toCentered ? Dock.CenterAlignment : Dock.FashionAlignment
+            animation.start()
+        } else {
</code_context>
<issue_to_address>
**Mode-dependent widgets jump early**

When the user switches from Fashion to left-aligned Classic mode, taskManager and spotlight tracking still use `Panel.fashionMode`, which switches to false as soon as Fashion→Left is requested, while `modeTransition.alignment` remains Fashion for the animation. Task sizing changes and hover tracking clears before the dock reaches its destination, so those elements jump out of sync with the transition.

Drive these mode-dependent consumers from the transition alignment, or defer their mode change until the transition finishes.
</issue_to_address>

### Comment 3
<location path="panels/dock/package/DockModeTransition.qml" line_range="95-96" />
<code_context>
+
+    function finishWhenWindowReady() {
+        if (waitingForWindow && geometryReady)
+            finish()
+    }
+
+    onGeometryReadyChanged: finishWhenWindowReady()
</code_context>
<issue_to_address>
**Rapid mode changes skip animation**

When a second alignment request arrives while the first mode transition is active, `finish()` stops the active animation and applies the latest alignment without starting a transition for it, so the dock jumps directly to the new mode instead of animating the second change.

After finishing or cancelling the active transition, compare the current and requested alignments and start a new animation when the latest request is eligible.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

hoverEnabled: true
propagateComposedEvents: true
enabled: !Panel.locked
enabled: !Panel.locked && !modeTransition.active

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Clicks still affect the moving dock

When the transition is active and the user clicks an icon or the dock background, the transition gates only dragArea and the card area, leaving DockCenterPart delegates, dockContainer TapHandlers, and task-item MouseAreas enabled; clicks on moving icons or the dock background launch apps or open and close menus during the intermediate layout.

Disable the delegates, TapHandlers, and task-item MouseAreas while modeTransition.active.

Prompt for AI agents
In `panels/dock/package/main.qml` at line 839:

**Clicks still affect the moving dock**

When the transition is active and the user clicks an icon or the dock background, the transition gates only `dragArea` and the card area, leaving `DockCenterPart` delegates, `dockContainer` TapHandlers, and task-item `MouseArea`s enabled; clicks on moving icons or the dock background launch apps or open and close menus during the intermediate layout.

Disable the delegates, TapHandlers, and task-item MouseAreas while `modeTransition.active`.

active = true
// Use the normal destination layout for centered mode, and the
// compact layout for transitions involving classic mode.
alignment = toCentered ? Dock.CenterAlignment : Dock.FashionAlignment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Mode-dependent widgets jump early

When the user switches from Fashion to left-aligned Classic mode, taskManager and spotlight tracking still use Panel.fashionMode, which switches to false as soon as Fashion→Left is requested, while modeTransition.alignment remains Fashion for the animation. Task sizing changes and hover tracking clears before the dock reaches its destination, so those elements jump out of sync with the transition.

Drive these mode-dependent consumers from the transition alignment, or defer their mode change until the transition finishes.

Prompt for AI agents
In `panels/dock/package/DockModeTransition.qml` at line 92:

**Mode-dependent widgets jump early**

When the user switches from Fashion to left-aligned Classic mode, taskManager and spotlight tracking still use `Panel.fashionMode`, which switches to false as soon as Fashion→Left is requested, while `modeTransition.alignment` remains Fashion for the animation. Task sizing changes and hover tracking clears before the dock reaches its destination, so those elements jump out of sync with the transition.

Drive these mode-dependent consumers from the transition alignment, or defer their mode change until the transition finishes.

Comment on lines +95 to +96
finish()
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Rapid mode changes skip animation

When a second alignment request arrives while the first mode transition is active, finish() stops the active animation and applies the latest alignment without starting a transition for it, so the dock jumps directly to the new mode instead of animating the second change.

After finishing or cancelling the active transition, compare the current and requested alignments and start a new animation when the latest request is eligible.

Prompt for AI agents
In `panels/dock/package/DockModeTransition.qml` at lines 95-96:

**Rapid mode changes skip animation**

When a second alignment request arrives while the first mode transition is active, `finish()` stops the active animation and applies the latest alignment without starting a transition for it, so the dock jumps directly to the new mode instead of animating the second change.

After finishing or cancelling the active transition, compare the current and requested alignments and start a new animation when the latest request is eligible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants