Repository navigation
[2500u3] fix(launcher): apply platform radius to uninstall dialog - #858
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 (cherry picked from commit 02122b6)
Reviewer's GuideUIBind the uninstall confirmation window's radius to the platform theme so its corners follow the system setting.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
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>| 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 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 |
There was a problem hiding this comment.
🟡 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.|
/test all |
|
[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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Treeland 下,启动器卸载确认框未显式设置窗口圆角,显示为直角。将
DWindow.windowRadius绑定到D.DTK.platformTheme.windowRadius,使确认框圆角跟随系统主题。将 #857 移植到
develop/2500u3,原提交为02122b635dcb868565f5fbb07b4859749cc93c48。无冲突,补丁与原提交一致。验证:
git diff --check通过。qmlformat语法解析通过。git patch-id --stable一致。shell-launcherapplet目标构建通过。尚未进行 Treeland/X11 下的亮暗主题界面验证。
Log: 修复 u3 启动器卸载确认框的圆角
Influence: 卸载确认框圆角跟随系统主题
PMS: BUG-296897
Summary by Sourcery
Bug Fixes: