50 lines
983 B
QML
50 lines
983 B
QML
pragma ComponentBehavior: Bound
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
|
|
import "../../config"
|
|
import "components"
|
|
|
|
Item {
|
|
id: root
|
|
|
|
required property ShellScreen screen
|
|
|
|
anchors {
|
|
top: parent.top
|
|
bottom: parent.bottom
|
|
left: parent.left
|
|
}
|
|
|
|
implicitWidth: Config.bar.width
|
|
|
|
Item {
|
|
id: child
|
|
|
|
anchors {
|
|
top: parent.top
|
|
bottom: parent.bottom
|
|
horizontalCenter: parent.horizontalCenter
|
|
}
|
|
|
|
implicitWidth: Math.max(clock.implicitWidth, workspaces.implicitWidth)
|
|
|
|
ColumnLayout {
|
|
spacing: 2
|
|
anchors {
|
|
top: parent.top
|
|
left: parent.left
|
|
right: parent.right
|
|
margins: 0
|
|
}
|
|
Clock {
|
|
id: clock
|
|
}
|
|
Workspaces {
|
|
id: workspaces
|
|
screen: root.screen
|
|
}
|
|
}
|
|
}
|
|
}
|