summaryrefslogtreecommitdiff
path: root/modules/detachedcontent/bluetooth/BtPane.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-03 19:57:41 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-03 19:57:41 +1000
commitbaf04ec30fad9087665c1c3bac77bdd981cf0c70 (patch)
tree230655ce02632026daa9d8a81a14029e82d8ff54 /modules/detachedcontent/bluetooth/BtPane.qml
parentdcontent: fix bt fab menu (diff)
downloadcaelestia-shell-baf04ec30fad9087665c1c3bac77bdd981cf0c70.tar.gz
caelestia-shell-baf04ec30fad9087665c1c3bac77bdd981cf0c70.tar.bz2
caelestia-shell-baf04ec30fad9087665c1c3bac77bdd981cf0c70.zip
dcontent: anim pane changes
Diffstat (limited to 'modules/detachedcontent/bluetooth/BtPane.qml')
-rw-r--r--modules/detachedcontent/bluetooth/BtPane.qml43
1 files changed, 42 insertions, 1 deletions
diff --git a/modules/detachedcontent/bluetooth/BtPane.qml b/modules/detachedcontent/bluetooth/BtPane.qml
index 1428540..bd48c7d 100644
--- a/modules/detachedcontent/bluetooth/BtPane.qml
+++ b/modules/detachedcontent/bluetooth/BtPane.qml
@@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import ".."
import qs.widgets
import qs.config
+import Quickshell.Bluetooth
import QtQuick
import QtQuick.Layouts
@@ -38,13 +39,47 @@ RowLayout {
Layout.fillHeight: true
Loader {
+ id: loader
+
+ property bool pane: root.session.bt.active
+
anchors.fill: parent
anchors.margins: Appearance.padding.large * 2 + Appearance.padding.normal
anchors.leftMargin: Appearance.padding.large * 2
anchors.rightMargin: Appearance.padding.large * 2 + Appearance.padding.normal / 2
asynchronous: true
- sourceComponent: root.session.bt.active ? details : settings
+ sourceComponent: pane ? details : settings
+
+ Behavior on pane {
+ SequentialAnimation {
+ ParallelAnimation {
+ Anim {
+ property: "opacity"
+ to: 0
+ easing.bezierCurve: Appearance.anim.curves.standardAccel
+ }
+ Anim {
+ property: "scale"
+ to: 0.7
+ easing.bezierCurve: Appearance.anim.curves.standardAccel
+ }
+ }
+ PropertyAction {}
+ ParallelAnimation {
+ Anim {
+ property: "opacity"
+ to: 1
+ easing.bezierCurve: Appearance.anim.curves.standardDecel
+ }
+ Anim {
+ property: "scale"
+ to: 1
+ easing.bezierCurve: Appearance.anim.curves.standardDecel
+ }
+ }
+ }
+ }
}
InnerBorder {
@@ -76,4 +111,10 @@ RowLayout {
}
}
}
+
+ component Anim: NumberAnimation {
+ target: loader
+ duration: Appearance.anim.durations.normal / 2
+ easing.type: Easing.BezierSpline
+ }
}