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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user