From 1ed0db3b48f86ec7d509cb67d0ef4f9b38c84fb2 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 30 Apr 2025 17:19:30 +1000 Subject: bar: animate bluetooth devices --- widgets/Box.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 widgets/Box.qml (limited to 'widgets') 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 + } + } +} -- cgit v1.2.3-freya