1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-03 19:12:11 -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

@@ -104,6 +104,12 @@ PanelWindow {
}
WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
BackgroundEffect.blurRegion: Region {
item: shouldBeVisible ? osdContainer : null
radius: Theme.cornerRadius
}
color: "transparent"
readonly property real dpr: CompositorService.getScreenScale(screen)

View File

@@ -345,6 +345,11 @@ Item {
bottom: !useBackgroundWindow
}
BackgroundEffect.blurRegion: Region {
item: shouldBeVisible ? contentContainer : null
radius: Theme.cornerRadius
}
WlrLayershell.margins {
left: useBackgroundWindow ? (root.alignedX - shadowBuffer) : 0
top: useBackgroundWindow ? (root.alignedY - shadowBuffer) : 0
@@ -470,7 +475,7 @@ Item {
anchors.fill: parent
radius: Theme.cornerRadius
color: Theme.withAlpha(Theme.surfaceContainer, Theme.popupTransparency)
border.color: Theme.outlineMedium
border.color: Theme.outline
border.width: 1
}