summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-30 17:19:30 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-30 17:19:30 +1000
commit1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2 (patch)
tree0a7994bb3c59448e941741d50871cb8908eb1984 /widgets
parentbar: workspaces change window colour (diff)
downloadcaelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.tar.gz
caelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.tar.bz2
caelestia-shell-1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2.zip
bar: animate bluetooth devices
Diffstat (limited to 'widgets')
-rw-r--r--widgets/Box.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/widgets/Box.qml b/widgets/Box.qml
new file mode 100644
index 0000000..c1ee51d
--- /dev/null
+++ b/widgets/Box.qml
@@ -0,0 +1,22 @@
+import "root:/config"
+import QtQuick
+
+Grid {
+ property bool vertical: parent.vertical ?? false // Propagate from parent
+
+ flow: vertical ? Grid.TopToBottom : Grid.LeftToRight
+ rows: vertical ? -1 : 1
+ columns: vertical ? 1 : -1
+ spacing: Appearance.spacing.small
+
+ add: Transition {
+ NumberAnimation {
+ properties: "scale"
+ from: 0
+ to: 1
+ duration: Appearance.anim.durations.normal
+ easing.type: Easing.BezierSpline
+ easing.bezierCurve: Appearance.anim.curves.standardDecel
+ }
+ }
+}