1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 12:52:06 -04:00

blur: fix dankbar auto-hide blur, fix synchronization in popouts and

modals
This commit is contained in:
bbedward
2026-03-30 10:40:52 -04:00
parent a0b2debd7e
commit 6e6416c8ba
4 changed files with 22 additions and 7 deletions

View File

@@ -150,7 +150,10 @@ PanelWindow {
const region = Qt.createQmlObject(qml, barWindow, "BarBlurRegion");
if (hasBar) {
region.item = Qt.binding(() => barUnitInset);
region.x = Qt.binding(() => topBarMouseArea.x + barUnitInset.x + topBarSlide.x);
region.y = Qt.binding(() => topBarMouseArea.y + barUnitInset.y + topBarSlide.y);
region.width = Qt.binding(() => barUnitInset.width);
region.height = Qt.binding(() => barUnitInset.height);
region.radius = Qt.binding(() => barBackground.rt);
}
@@ -184,6 +187,18 @@ PanelWindow {
}
}
Connections {
target: topBarSlide
function onXChanged() {
if (barWindow.blurRegion)
barWindow.blurRegion.changed();
}
function onYChanged() {
if (barWindow.blurRegion)
barWindow.blurRegion.changed();
}
}
Component.onCompleted: rebuild()
Component.onDestruction: teardown()
}