Skip to content

feat(dock): enable fashion mode by default - #1833

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
wjyrich:feat-enable-fashion-mode-master
Nov 19, 2026
Merged

deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
wjyrich:feat-enable-fashion-mode-master

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Set the shared enableFashionMode switch to true by default, making the fashion mode menu entry, folder residence and task overflow available without manual configuration. Align the Dock and task manager initial and fallback values, and update the related comments and documentation.

Explicit false settings continue to disable these features. Enabling the switch allows selecting fashion mode; the default alignment remains centered.

Validation:

  • JSON parsing and metadata comparison: only the enableFashionMode default changes.
  • git diff --check passes for both branches; both patches are identical.
  • CMake configuration and dockpanel / dock-taskmanager builds pass on develop/2500u3.

PMS: TASK-398797

Summary by Sourcery

Enable fashion mode by default across the Dock and task manager while retaining support for explicit opt-out configuration.

New Features:

  • Enable fashion mode by default, making its menu entry, folder residence, and task overflow available without manual configuration.

Enhancements:

  • Align Dock and task manager fallback and initial fashion-mode settings while preserving explicit opt-out behavior and centered alignment by default.

Documentation:

  • Update launcher folder residence documentation to reflect the enabled-by-default fashion mode setting.

1. Enable the fashion mode switch by default.
2. Align Dock and task manager fallback values.
3. Update comments and folder residence documentation.

Log: Enable the shared fashion mode switch by default
Influence: Dock features are available by default.

feat(dock): 默认开启时尚模式开关

1. 将时尚模式开关的默认值设为开启。
2. 同步任务栏和任务管理器的回退值。
3. 更新注释和文件夹驻留文档。

Log: 默认开启时尚模式统一开关
Influence: 默认开放任务栏相关功能。
PMS: TASK-398797
@sourcery-ai

sourcery-ai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Reviewer's Guide

API

Update the DockPanel comment to reflect that fashion mode is enabled by default.

  • panels/dock/dockpanel.h L115

Implementation

Align Dock and task-manager fallback and initial values with the enabled-by-default switch, updating the related comments.

  • panels/dock/docksettings.cpp L195, L252
  • panels/dock/docksettings.h L48, L109
  • panels/dock/taskmanager/taskmanagersettings.cpp L49-52
  • panels/dock/taskmanager/taskmanagersettings.h L88

UI

Keep the fashion mode menu entry visibility tied to the shared switch and update its comment.

  • panels/dock/package/main.qml L419

Configuration

Change the shared DConfig setting's default so fashion mode features are enabled without manual configuration.

  • panels/dock/dconfig/org.deepin.ds.dock.json L118

Documentation

Document that the shared fashion mode switch defaults to enabled.

  • docs/launcher-folder-residence.md L22

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@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 reviewed your changes and they look great!


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

@deepin-ci-robot

deepin-ci-robot commented Nov 19, 2026 •

Copy link
Copy Markdown

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

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

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

@deepin-ci-robot

Copy link
Copy Markdown

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

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

@wjyrich

wjyrich commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

/forcemerge

@deepin-bot

deepin-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown

This pr force merged! (status: behind)

@deepin-bot
deepin-bot Bot merged commit 279e968 into linuxdeepin:master Nov 19, 2026
12 of 13 checks passed
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.

3 participants