mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-15 15:45:20 -04:00
Refactor connected chrome rendering & remove legacy components
This commit is contained in:
@@ -16,6 +16,11 @@ Item {
|
||||
property real blurWidth: 0
|
||||
property real blurHeight: 0
|
||||
property real blurRadius: 0
|
||||
property bool clipEnabled: false
|
||||
property real clipX: blurX
|
||||
property real clipY: blurY
|
||||
property real clipWidth: blurWidth
|
||||
property real clipHeight: blurHeight
|
||||
|
||||
readonly property bool _active: blurEnabled && BlurService.enabled && !!targetWindow
|
||||
|
||||
@@ -26,6 +31,14 @@ Item {
|
||||
width: root.blurWidth
|
||||
height: root.blurHeight
|
||||
radius: root.blurRadius
|
||||
|
||||
Region {
|
||||
intersection: Intersection.Intersect
|
||||
x: root.clipEnabled ? root.clipX : root.blurX
|
||||
y: root.clipEnabled ? root.clipY : root.blurY
|
||||
width: root.clipEnabled ? root.clipWidth : root.blurWidth
|
||||
height: root.clipEnabled ? root.clipHeight : root.blurHeight
|
||||
}
|
||||
}
|
||||
|
||||
function _apply() {
|
||||
|
||||
Reference in New Issue
Block a user