diff options
Diffstat (limited to 'modules/background/Background.qml')
| -rw-r--r-- | modules/background/Background.qml | 25 |
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 { |