Skip to content

[2500u3] fix(launcher): apply platform radius to uninstall dialog - #858

Merged
wjyrich merged 1 commit into
linuxdeepin:develop/2500u3from
wjyrich:backport/857-develop-2500u3
Nov 23, 2026
Merged

wjyrich merged 1 commit into
linuxdeepin:develop/2500u3from
wjyrich:backport/857-develop-2500u3

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Treeland 下,启动器卸载确认框未显式设置窗口圆角,显示为直角。将 DWindow.windowRadius 绑定到 D.DTK.platformTheme.windowRadius,使确认框圆角跟随系统主题。

将 #857 移植到 develop/2500u3,原提交为 02122b635dcb868565f5fbb07b4859749cc93c48。无冲突,补丁与原提交一致。

验证:

  • git diff --check 通过。
  • Qt 6 qmlformat 语法解析通过。
  • 原提交与移植提交的 git patch-id --stable 一致。
  • CMake 配置及 shell-launcherapplet 目标构建通过。

尚未进行 Treeland/X11 下的亮暗主题界面验证。

Log: 修复 u3 启动器卸载确认框的圆角
Influence: 卸载确认框圆角跟随系统主题
PMS: BUG-296897

Summary by Sourcery

Bug Fixes:

  • Fix the launcher uninstall confirmation dialog so its window corners follow the platform theme radius.

1. Set DWindow.windowRadius from DTK platform theme for the preview
window
2. Keep the preview window corners consistent with the system theme
radius

Log: Apply platform window radius to launcher preview window
Influence: Preview window corners match the system theme

fix(launcher): 为预览窗口应用平台圆角

1. 为预览窗口设置来自 DTK 平台主题的 DWindow.windowRadius
2. 使预览窗口圆角与系统主题圆角保持一致

Log: 为启动器预览窗口应用平台圆角
Influence: 预览窗口圆角与系统主题保持一致
PMS: BUG-296897
(cherry picked from commit 02122b6)
@sourcery-ai

sourcery-ai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Reviewer's Guide

UI

Bind the uninstall confirmation window's radius to the platform theme so its corners follow the system setting.

  • shell-launcher-applet/package/launcheritem.qml L416

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 found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="shell-launcher-applet/package/launcheritem.qml" line_range="416" />
<code_context>
         property string appId: ""
         property string appName: ""

+        DWindow.windowRadius: D.DTK.platformTheme.windowRadius
         Component.onCompleted: {
             DLayerShellWindow.anchors = DLayerShellWindow.AnchorNone
</code_context>
<issue_to_address>
**Uninstall dialog loses rounded corners**

When the platform theme reports a negative window radius, `DWindow.windowRadius` receives the negative sentinel instead of the 12-pixel fallback used by the launcher’s other themed window, so the uninstall dialog lacks the expected rounded corners.

Use the 12-pixel fallback when the platform theme’s window radius is negative.
</issue_to_address>

### Comment 2
<location path="shell-launcher-applet/package/launcheritem.qml" line_range="416" />
<code_context>
         property string appId: ""
         property string appName: ""

+        DWindow.windowRadius: D.DTK.platformTheme.windowRadius
         Component.onCompleted: {
             DLayerShellWindow.anchors = DLayerShellWindow.AnchorNone
</code_context>
<issue_to_address>
**Other uninstall dialog stays square**

When an uninstall confirmation is opened through the `qml/Main.qml` launcher path, the separate uninstall dialog in `qml/Main.qml` remains without a `DWindow.windowRadius` binding, so uninstall confirmations reached through that launcher path keep their previous square corners instead of following the platform theme.

Apply the platform-theme radius, including the negative-value fallback, to the `qml/Main.qml` uninstall dialog as well.
</issue_to_address>

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

property string appId: ""
property string appName: ""

DWindow.windowRadius: D.DTK.platformTheme.windowRadius

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 · Uninstall dialog loses rounded corners

When the platform theme reports a negative window radius, DWindow.windowRadius receives the negative sentinel instead of the 12-pixel fallback used by the launcher’s other themed window, so the uninstall dialog lacks the expected rounded corners.

Use the 12-pixel fallback when the platform theme’s window radius is negative.

Prompt for AI agents
In `shell-launcher-applet/package/launcheritem.qml` at line 416:

**Uninstall dialog loses rounded corners**

When the platform theme reports a negative window radius, `DWindow.windowRadius` receives the negative sentinel instead of the 12-pixel fallback used by the launcher’s other themed window, so the uninstall dialog lacks the expected rounded corners.

Use the 12-pixel fallback when the platform theme’s window radius is negative.

property string appId: ""
property string appName: ""

DWindow.windowRadius: D.DTK.platformTheme.windowRadius

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 · Other uninstall dialog stays square

When an uninstall confirmation is opened through the qml/Main.qml launcher path, the separate uninstall dialog in qml/Main.qml remains without a DWindow.windowRadius binding, so uninstall confirmations reached through that launcher path keep their previous square corners instead of following the platform theme.

Apply the platform-theme radius, including the negative-value fallback, to the qml/Main.qml uninstall dialog as well.

Prompt for AI agents
In `shell-launcher-applet/package/launcheritem.qml` at line 416:

**Other uninstall dialog stays square**

When an uninstall confirmation is opened through the `qml/Main.qml` launcher path, the separate uninstall dialog in `qml/Main.qml` remains without a `DWindow.windowRadius` binding, so uninstall confirmations reached through that launcher path keep their previous square corners instead of following the platform theme.

Apply the platform-theme radius, including the negative-value fallback, to the `qml/Main.qml` uninstall dialog as well.

@wjyrich

wjyrich commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

/test all

@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 merged commit cea8428 into linuxdeepin:develop/2500u3 Nov 23, 2026
11 of 14 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