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:
@@ -96,6 +96,10 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
BackgroundEffect.blurRegion: Region {
|
||||
item: barUnitInset
|
||||
}
|
||||
|
||||
WlrLayershell.layer: dBarLayer
|
||||
WlrLayershell.namespace: "dms:bar"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user