summaryrefslogtreecommitdiff
path: root/modules/background/Background.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-21 14:05:06 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-21 14:05:06 +1100
commit8a46b63a557ef026c4e69b6ebf3498db7c2dfdd8 (patch)
tree19439cf32549646ac933a1732b3cdb017c690176 /modules/background/Background.qml
parent[CI] chore: update flake (diff)
downloadcaelestia-shell-8a46b63a557ef026c4e69b6ebf3498db7c2dfdd8.tar.gz
caelestia-shell-8a46b63a557ef026c4e69b6ebf3498db7c2dfdd8.tar.bz2
caelestia-shell-8a46b63a557ef026c4e69b6ebf3498db7c2dfdd8.zip
background: fix visualiser blur + allow disable
Fixes #807
Diffstat (limited to 'modules/background/Background.qml')
-rw-r--r--modules/background/Background.qml25
1 files changed, 3 insertions, 22 deletions
diff --git a/modules/background/Background.qml b/modules/background/Background.qml
index bdba570..fbacfab 100644
--- a/modules/background/Background.qml
+++ b/modules/background/Background.qml
@@ -35,29 +35,10 @@ Loader {
id: wallpaper
}
- Loader {
- readonly property bool shouldBeActive: Config.background.visualiser.enabled && (!Config.background.visualiser.autoHide || Hypr.monitorFor(win.modelData).activeWorkspace.toplevels.values.every(t => t.lastIpcObject.floating)) ? 1 : 0
- property real offset: shouldBeActive ? 0 : win.modelData.height * 0.2
-
+ Visualiser {
anchors.fill: parent
- anchors.topMargin: offset
- anchors.bottomMargin: -offset
- opacity: shouldBeActive ? 1 : 0
- active: opacity > 0
- asynchronous: true
-
- sourceComponent: Visualiser {
- screen: win.modelData
- wallpaper: wallpaper
- }
-
- Behavior on offset {
- Anim {}
- }
-
- Behavior on opacity {
- Anim {}
- }
+ screen: win.modelData
+ wallpaper: wallpaper
}
Loader {