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 --- config/BarConfig.qml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'config/BarConfig.qml') diff --git a/config/BarConfig.qml b/config/BarConfig.qml index 62f3934..90d26eb 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -1,16 +1,21 @@ pragma Singleton +pragma ComponentBehavior: Bound import Quickshell import QtQuick Singleton { + id: root + property bool vertical: false + property Preset preset: presets.pills readonly property Sizes sizes: Sizes {} readonly property Workspaces workspaces: Workspaces {} + readonly property Presets presets: Presets {} component Sizes: QtObject { - readonly property int height: 50 + readonly property int height: 40 readonly property int innerHeight: 30 readonly property int floatingGap: 10 readonly property int floatingGapLarge: 15 @@ -21,4 +26,16 @@ Singleton { readonly property string style: "" readonly property bool occupiedBg: true } + + component Preset: QtObject { + required property string name + required property int totalHeight + } + + component Presets: QtObject { + readonly property Preset pills: Preset { + name: "pills" + totalHeight: root.sizes.height + root.sizes.floatingGap + } + } } -- cgit v1.2.3-freya