Skip to content

Commit 197916f

Browse files
committed
fix: use scene graph blur for uninstall confirmation dialog
Replaces KWin blur (enableBlurWindow: true) with StyledBehindWindowBlur scene graph blur on confirmUninstallDlg, matching the windowed launcher's approach. KWin blur was influenced by content behind the dialog (dark fullscreen launcher or desktop wallpaper), causing gray/dark appearance. - Set color: transparent to let blur show through - DWindow.enableBlurWindow: false to disable KWin compositor blur - DWindow.themeType: DTK.themeType to follow system theme - StyledBehindWindowBlur with proper blend colors for light/dark themes Bug: https://pms.uniontech.com/bug-view-359629.html
1 parent f86bd7a commit 197916f

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

shell-launcher-applet/package/launcheritem.qml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,22 +304,34 @@ AppletItem {
304304
property string appId: ""
305305
property string appName: ""
306306

307+
color: "transparent"
308+
DWindow.themeType: DTK.themeType
309+
DWindow.enableBlurWindow: false
307310
DLayerShellWindow.anchors: DLayerShellWindow.AnchorNone
308311

309-
minimumWidth: layout.implicitWidth + 2 * DStyle.Style.dialogWindow.contentHMargin
310-
minimumHeight: layout.implicitHeight + DStyle.Style.dialogWindow.titleBarHeight
311-
maximumWidth: minimumWidth
312-
maximumHeight: minimumHeight
312+
StyledBehindWindowBlur {
313+
id: behindBlur
314+
anchors.fill: parent
315+
control: parent
316+
blendColor: DStyle.Style.control.selectColor(undefined,
317+
Qt.rgba(235 / 255.0, 235 / 255.0, 235 / 255.0, 0.6),
318+
Qt.rgba(0, 0, 0, 85 / 255.0))
319+
}
313320

314321
onVisibleChanged: {
315322
if (!visible) {
316323
LauncherController.setAvoidHide(true)
317324
if (LauncherController.currentFrame === "FullscreenFrame") {
318-
fullscreenFrame.requestActivate()
319-
}
325+
fullscreenFrame.requestActivate()
326+
}
320327
}
321328
}
322329

330+
minimumWidth: layout.implicitWidth + 2 * DStyle.Style.dialogWindow.contentHMargin
331+
minimumHeight: layout.implicitHeight + DStyle.Style.dialogWindow.titleBarHeight
332+
maximumWidth: minimumWidth
333+
maximumHeight: minimumHeight
334+
323335
ColumnLayout {
324336
id: layout
325337
spacing: 0

0 commit comments

Comments
 (0)