bar/TopBar.qml (view raw)
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 |
import Quickshell
import QtQuick
import ".."
PanelWindow {
id: topBar
property alias topRightContent: topRight.children
property alias topCenterContent: topCenter.children
property alias topLeftContent: topLeft.children
anchors.top: true
anchors.left: true
anchors.right: true
implicitHeight: Resources.barsize.topbar
color: Resources.palette.bg
Row {
id: topRow
anchors.fill: parent
spacing: 2
Row { // LEFT
id: topLeft
anchors.left: topRow.left
leftPadding: 8
}
Row { // CENTER
id: topCenter
anchors.centerIn: topRow
}
Row { // RIGHT
id: topRight
anchors.right: topRow.right
rightPadding: 8
}
}
}
|