From 63da636144635e5aa6b7ff1a2d2eec2a1e35aafa Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 27 May 2025 10:42:08 +0800 Subject: internal: bar only vertical The bar can only be vertical Remove box, boxlayout and anchortext Add StyledClippingRect --- widgets/Box.qml | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 widgets/Box.qml (limited to 'widgets/Box.qml') diff --git a/widgets/Box.qml b/widgets/Box.qml deleted file mode 100644 index 9c786c7..0000000 --- a/widgets/Box.qml +++ /dev/null @@ -1,30 +0,0 @@ -import "root:/config" -import QtQuick - -Grid { - property bool vertical: parent.vertical ?? false // Propagate from parent - - flow: vertical ? Grid.TopToBottom : Grid.LeftToRight - spacing: Appearance.spacing.small - - onVerticalChanged: { - if (vertical) { - rows = -1; - columns = 1; - } else { - columns = -1; - rows = 1; - } - } - - 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