1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-04 04:28:30 -04:00

launcher: add option to choose spotlight style on niri overview

(cherry picked from commit 3da19e5c15)
This commit is contained in:
bbedward
2026-07-13 16:01:08 -04:00
parent 4b05e7a0fa
commit fcda17f517
9 changed files with 145 additions and 69 deletions
+42
View File
@@ -60,6 +60,42 @@ Item {
targetWindow.BackgroundEffect.blurRegion = _active ? blurRegion : null;
}
// Republish after geometry settles, plus one trailing pass.
onBlurXChanged: settleKickAction.restart()
onBlurYChanged: settleKickAction.restart()
onBlurWidthChanged: settleKickAction.restart()
onBlurHeightChanged: settleKickAction.restart()
onBlurRadiusChanged: settleKickAction.restart()
onClipEnabledChanged: settleKickAction.restart()
onClipXChanged: settleKickAction.restart()
onClipYChanged: settleKickAction.restart()
onClipWidthChanged: settleKickAction.restart()
onClipHeightChanged: settleKickAction.restart()
function _runSettleKick() {
if (!targetWindow?.visible)
return;
kick();
settleRepeatTimer.restart();
}
DeferredAction {
id: settleKickAction
interval: 16
onTriggered: root._runSettleKick()
}
Timer {
id: settleRepeatTimer
interval: 96
repeat: false
onTriggered: {
if (!root.targetWindow?.visible)
return;
root.kick();
}
}
function _scheduleLifecycleKick() {
lifecycleKickAction.restart();
}
@@ -98,6 +134,12 @@ Item {
else
root._clear();
}
function onWidthChanged() {
settleKickAction.restart();
}
function onHeightChanged() {
settleKickAction.restart();
}
function onResourcesLost() {
root._clear();
// Re-arm so blur self-heals since instances are no longer recreated per open