diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/BarConfig.qml | 19 |
1 files changed, 18 insertions, 1 deletions
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 + } + } } |