1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-03 11:02:08 -04:00

blur: demo BackgroundEffect.blurRegion on some components

This commit is contained in:
bbedward
2026-02-16 09:47:30 -05:00
parent a9ee91586e
commit 22f384b821
7 changed files with 56 additions and 9 deletions

View File

@@ -13,6 +13,14 @@ PanelWindow {
WlrLayershell.namespace: "dms:notification-popup"
BackgroundEffect.blurRegion: Region {
x: content.x + bgShadowLayer.x
y: content.y + bgShadowLayer.y
width: bgShadowLayer.width
height: bgShadowLayer.height
radius: !win._finalized && !win.exiting ? Theme.cornerRadius : 0
}
required property var notificationData
required property string notificationId
readonly property bool hasValidData: notificationData && notificationData.notification
@@ -267,6 +275,14 @@ PanelWindow {
}
}
Rectangle {
anchors.fill: parent
radius: Theme.cornerRadius
color: "transparent"
border.color: Theme.outline
border.width: 1
}
Rectangle {
id: backgroundShape
anchors.fill: parent