From bb09f65d501e5f6e52b70f3441d288c16f1fe483 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 1 May 2025 18:51:22 +1000 Subject: bar: fix vertical switching IT WORKS AFHJIASHFGUOADGHOASF Need to reload the preset when changing between but eh --- widgets/Box.qml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/Box.qml b/widgets/Box.qml index c1ee51d..9c786c7 100644 --- a/widgets/Box.qml +++ b/widgets/Box.qml @@ -5,10 +5,18 @@ 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 + onVerticalChanged: { + if (vertical) { + rows = -1; + columns = 1; + } else { + columns = -1; + rows = 1; + } + } + add: Transition { NumberAnimation { properties: "scale" -- cgit v1.2.3-freya