Skip to content

fix(launcher): apply platform window radius to preview window - #857

Merged
wjyrich merged 1 commit into
linuxdeepin:masterfrom
wjyrich:fix-bug-296897
Nov 20, 2026
Merged

wjyrich merged 1 commit into
linuxdeepin:masterfrom
wjyrich:fix-bug-296897

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor
  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

Summary by Sourcery

Bug Fixes:

  • Match the launcher preview window’s corner radius to the platform theme.

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
@sourcery-ai

sourcery-ai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Reviewer's Guide

UI

Set the launcher preview window’s radius from the DTK platform theme so its corners match the system theme.

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

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 1 issue

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="417" />
<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 `windowRadius`, `confirmUninstallDlg` passes the negative radius to `DWindow.windowRadius` instead of applying the 12-pixel fallback used by `windowedModeLauncher`, so the uninstall confirmation dialog loses its intended themed corner radius; the preview window is unaffected.

Apply the same negative-radius-to-12-pixel fallback to `confirmUninstallDlg`.
</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 windowRadius, confirmUninstallDlg passes the negative radius to DWindow.windowRadius instead of applying the 12-pixel fallback used by windowedModeLauncher, so the uninstall confirmation dialog loses its intended themed corner radius; the preview window is unaffected.

Apply the same negative-radius-to-12-pixel fallback to confirmUninstallDlg.

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

**Uninstall dialog loses rounded corners**

When the platform theme reports a negative `windowRadius`, `confirmUninstallDlg` passes the negative radius to `DWindow.windowRadius` instead of applying the 12-pixel fallback used by `windowedModeLauncher`, so the uninstall confirmation dialog loses its intended themed corner radius; the preview window is unaffected.

Apply the same negative-radius-to-12-pixel fallback to `confirmUninstallDlg`.

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: BLumia, 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 df1a0c9 into linuxdeepin:master Nov 20, 2026
8 of 12 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