summaryrefslogtreecommitdiff
path: root/config/BarConfig.qml
blob: 90d26eb298c986fcfcd3e5f14c67f8c6e20c7403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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: 40
        readonly property int innerHeight: 30
        readonly property int floatingGap: 10
        readonly property int floatingGapLarge: 15
    }

    component Workspaces: QtObject {
        readonly property int shown: 10
        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
        }
    }
}