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

@@ -291,6 +291,14 @@ Item {
right: true
}
BackgroundEffect.blurRegion: Region {
x: contentVisible ? root.modalX : 0
y: contentVisible ? root.modalY : 0
width: contentVisible ? root.modalWidth : 0
height: contentVisible ? root.modalHeight : 0
radius: root.cornerRadius
}
mask: Region {
item: spotlightOpen ? fullScreenMask : null
}
@@ -359,8 +367,6 @@ Item {
Rectangle {
anchors.fill: parent
color: root.backgroundColor
border.color: root.borderColor
border.width: root.borderWidth
radius: root.cornerRadius
}
@@ -386,6 +392,14 @@ Item {
event.accepted = true;
}
}
Rectangle {
anchors.fill: parent
radius: root.cornerRadius
color: "transparent"
border.color: Theme.outline
border.width: 1
}
}
}
}