diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-23 16:50:12 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-23 16:50:12 +0800 |
| commit | 36f28f7c42957cd8728bf4fb7740be28d5b746cb (patch) | |
| tree | d9e96075b456244d08ad2669fe5da1aba04e3a95 /config | |
| parent | dashboard: shrink bongo cat so no overlap (diff) | |
| download | caelestia-shell-36f28f7c42957cd8728bf4fb7740be28d5b746cb.tar.gz caelestia-shell-36f28f7c42957cd8728bf4fb7740be28d5b746cb.tar.bz2 caelestia-shell-36f28f7c42957cd8728bf4fb7740be28d5b746cb.zip | |
bar: switch to embedded style
Diffstat (limited to 'config')
| -rw-r--r-- | config/BarConfig.qml | 52 |
1 files changed, 4 insertions, 48 deletions
diff --git a/config/BarConfig.qml b/config/BarConfig.qml index 727c376..5e5a718 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -1,5 +1,4 @@ pragma Singleton -pragma ComponentBehavior: Bound import Quickshell import QtQuick @@ -7,26 +6,16 @@ import QtQuick Singleton { id: root - property bool vertical: true - property Preset preset: presets.pills - - readonly property Sizes sizes: preset.sizes - readonly property Workspaces workspaces: preset.workspaces - readonly property Tray tray: preset.tray - readonly property Presets presets: Presets {} + readonly property Sizes sizes: Sizes {} + readonly property Workspaces workspaces: Workspaces {} + readonly property Tray tray: Tray {} component Sizes: QtObject { - property int exclusiveZone: totalHeight - property int totalHeight: height - property int height: 40 property int innerHeight: 30 - property int floatingGap: 15 - property int maxLabelWidth: 600 - property int maxLabelHeight: 400 } component Workspaces: QtObject { - property int shown: root.vertical ? 5 : 10 + property int shown: 5 property bool rounded: true property bool activeIndicator: true property bool occupiedBg: false @@ -40,37 +29,4 @@ Singleton { component Tray: QtObject { property bool recolourIcons: false } - - component Preset: QtObject { - required property string name - property Sizes sizes: Sizes {} - property Workspaces workspaces: Workspaces {} - property Tray tray: Tray {} - } - - component Presets: QtObject { - readonly property Preset pills: Preset { - name: "pills" - sizes: Sizes { - totalHeight: height + floatingGap * 2 - exclusiveZone: totalHeight - floatingGap - } - } - readonly property Preset panel: Preset { - name: "panel" - sizes: Sizes { - height: 30 - } - workspaces: Workspaces { - rounded: false - showWindows: false - label: "" - occupiedLabel: "" - activeLabel: "" - } - tray: Tray { - recolourIcons: true - } - } - } } |