summaryrefslogtreecommitdiff
path: root/modules/bar/Bar.qml
blob: 35c77e0a593de59d4d606bdce497440ef3736bcb (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import "root:/widgets"
import "root:/config"
import "components"
import "components/workspaces"
import Quickshell
import Quickshell.Wayland
import QtQuick
import QtQuick.Controls

Variants {
    model: Quickshell.screens

    WlrLayershell {
        id: win

        required property ShellScreen modelData

        screen: modelData
        namespace: "caelestia-bar"
        color: "transparent"

        width: content.width
        height: content.height

        anchors.top: true
        anchors.left: true
        anchors.right: true

        // Connections {
        //     target: BarConfig

        //     function onVerticalChanged(): void {
        //         win.visible = false;
        //         if (BarConfig.vertical) {
        //             win.anchors.right = false;
        //             win.anchors.bottom = true;
        //         } else {
        //             win.anchors.bottom = false;
        //             win.anchors.right = true;
        //         }
        //         win.visible = true;
        //     }
        // }

        // SwipeView {
        //     anchors.fill: parent

        // }
        Pills {
            id: content
        }

        // Box {
        //     id: contents

        //     padding: [Appearance.padding.normal, Appearance.padding.large, 0, Appearance.padding.large]

        //     BoxLayout {
        //         vertical: win.vertical
        //         spacing: Appearance.spacing.larger
        //         padding: [0, Appearance.padding.large]
        //         color: Appearance.alpha(Appearance.colours.base, false)
        //         radius: Appearance.rounding.full

        //         OsIcon {}

        //         Workspaces {
        //             vertical: win.vertical
        //         }

        //         Clock {
        //             vertical: win.vertical
        //         }

        //         ActiveWindow {
        //             vertical: win.vertical
        //         }
        //     }
        // }
    }
}