Repository navigation
fix(launcher): apply platform window radius to preview window - #857
Conversation
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
Reviewer's GuideUISet the launcher preview window’s radius from the DTK platform theme so its corners match the system theme.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
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>| property string appId: "" | ||
| property string appName: "" | ||
|
|
||
| DWindow.windowRadius: D.DTK.platformTheme.windowRadius |
There was a problem hiding this comment.
🟡 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`.|
[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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Log: Apply platform window radius to launcher preview window
Influence: Preview window corners match the system theme
fix(launcher): 为预览窗口应用平台圆角
Log: 为启动器预览窗口应用平台圆角
Influence: 预览窗口圆角与系统主题保持一致
PMS: BUG-296897
Summary by Sourcery
Bug Fixes: