summaryrefslogtreecommitdiff
path: root/config/BarConfig.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 14:05:31 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 14:05:31 +1000
commitb59dde6c5f996f9c6891bad67e9fb12829d9b364 (patch)
tree8bbe36a5dc139c889fed26834ebd8f15630debf0 /config/BarConfig.qml
parentrefactor: occupiedbg comp anim (diff)
downloadcaelestia-shell-b59dde6c5f996f9c6891bad67e9fb12829d9b364.tar.gz
caelestia-shell-b59dde6c5f996f9c6891bad67e9fb12829d9b364.tar.bz2
caelestia-shell-b59dde6c5f996f9c6891bad67e9fb12829d9b364.zip
bar: use swipeview
Diffstat (limited to 'config/BarConfig.qml')
-rw-r--r--config/BarConfig.qml19
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
+ }
+ }
}