summaryrefslogtreecommitdiff
path: root/modules/bar/popouts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-24 17:22:00 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-24 17:22:00 +1000
commit6e8a32d4e40e25e1c077394f1638a43176ebf9ed (patch)
tree26704741e0c3a41a9ca461c7bc148f58553bf8f7 /modules/bar/popouts
parentinternal: add canim component (diff)
downloadcaelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.tar.gz
caelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.tar.bz2
caelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.zip
internal: use Anim component
Diffstat (limited to 'modules/bar/popouts')
-rw-r--r--modules/bar/popouts/Audio.qml6
-rw-r--r--modules/bar/popouts/Background.qml12
-rw-r--r--modules/bar/popouts/Battery.qml6
-rw-r--r--modules/bar/popouts/TrayMenu.qml22
-rw-r--r--modules/bar/popouts/Wrapper.qml9
5 files changed, 12 insertions, 43 deletions
diff --git a/modules/bar/popouts/Audio.qml b/modules/bar/popouts/Audio.qml
index bb35af8..fcc2a1e 100644
--- a/modules/bar/popouts/Audio.qml
+++ b/modules/bar/popouts/Audio.qml
@@ -101,11 +101,7 @@ Item {
onMoved: Audio.setVolume(value)
Behavior on value {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
}
}
diff --git a/modules/bar/popouts/Background.qml b/modules/bar/popouts/Background.qml
index 9e78eeb..075b698 100644
--- a/modules/bar/popouts/Background.qml
+++ b/modules/bar/popouts/Background.qml
@@ -64,18 +64,10 @@ ShapePath {
}
Behavior on ibr {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
Behavior on sideRounding {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
}
diff --git a/modules/bar/popouts/Battery.qml b/modules/bar/popouts/Battery.qml
index 08bb814..35d32c5 100644
--- a/modules/bar/popouts/Battery.qml
+++ b/modules/bar/popouts/Battery.qml
@@ -224,11 +224,7 @@ Column {
fill: profiles.current === text ? 1 : 0
Behavior on fill {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
}
}
diff --git a/modules/bar/popouts/TrayMenu.qml b/modules/bar/popouts/TrayMenu.qml
index 67305b5..986c806 100644
--- a/modules/bar/popouts/TrayMenu.qml
+++ b/modules/bar/popouts/TrayMenu.qml
@@ -22,10 +22,10 @@ StackView {
handle: root.trayItem
}
- pushEnter: Anim {}
- pushExit: Anim {}
- popEnter: Anim {}
- popExit: Anim {}
+ pushEnter: NoAnim {}
+ pushExit: NoAnim {}
+ popEnter: NoAnim {}
+ popExit: NoAnim {}
HyprlandFocusGrab {
active: true
@@ -33,7 +33,7 @@ StackView {
onCleared: root.popouts.hasCurrent = false
}
- component Anim: Transition {
+ component NoAnim: Transition {
NumberAnimation {
duration: 0
}
@@ -58,19 +58,11 @@ StackView {
StackView.onRemoved: destroy()
Behavior on opacity {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
Behavior on scale {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
+ Anim {}
}
QsMenuOpener {
diff --git a/modules/bar/popouts/Wrapper.qml b/modules/bar/popouts/Wrapper.qml
index 845826d..20f4c5b 100644
--- a/modules/bar/popouts/Wrapper.qml
+++ b/modules/bar/popouts/Wrapper.qml
@@ -1,5 +1,6 @@
pragma ComponentBehavior: Bound
+import qs.components
import qs.services
import qs.config
import qs.modules.windowinfo
@@ -170,7 +171,6 @@ Item {
}
Anim {
property: "opacity"
- easing.bezierCurve: Appearance.anim.curves.standard
}
}
},
@@ -181,7 +181,6 @@ Item {
SequentialAnimation {
Anim {
property: "opacity"
- easing.bezierCurve: Appearance.anim.curves.standard
}
PropertyAction {
property: "active"
@@ -190,10 +189,4 @@ Item {
}
]
}
-
- component Anim: NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.emphasized
- }
}