From b59dde6c5f996f9c6891bad67e9fb12829d9b364 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 29 Apr 2025 14:05:31 +1000 Subject: bar: use swipeview --- modules/bar/Bar.qml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'modules/bar/Bar.qml') diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 35c77e0..420ad18 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -19,8 +19,8 @@ Variants { namespace: "caelestia-bar" color: "transparent" - width: content.width - height: content.height + width: BarConfig.vertical ? BarConfig.preset.totalHeight : -1 + height: BarConfig.vertical ? -1 : BarConfig.preset.totalHeight anchors.top: true anchors.left: true @@ -42,12 +42,15 @@ Variants { // } // } - // SwipeView { - // anchors.fill: parent + SwipeView { + anchors.fill: parent + currentIndex: 1 - // } - Pills { - id: content + // Item { + Pills { + id: content + } + // } } // Box { -- cgit v1.2.3-freya