import QtQuick import QtQuick.Layouts import Quickshell import Quickshell.Wayland import "." as M PanelWindow { id: bar required property var screen color: "transparent" WlrLayershell.layer: WlrLayer.Bottom anchors { top: true left: true right: true } implicitHeight: M.Theme.barHeight exclusiveZone: implicitHeight Rectangle { anchors.fill: parent color: M.Theme.base00 opacity: M.Theme.barOpacity } Item { anchors.fill: parent anchors.leftMargin: M.Theme.barPadding anchors.rightMargin: M.Theme.barPadding // ---- center (declared first so left/right can anchor to it) ---- RowLayout { id: centerSection anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter spacing: M.Theme.barSpacing M.Clock {} M.Notifications {} } // ---- left ---- RowLayout { anchors.left: parent.left anchors.right: centerSection.left anchors.verticalCenter: parent.verticalCenter spacing: M.Theme.barSpacing M.Tray { bar: bar } M.WindowTitle { Layout.maximumWidth: 400 } } // ---- right ---- RowLayout { anchors.left: centerSection.right anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter spacing: M.Theme.barSpacing Item { Layout.fillWidth: true } M.Mpris {} M.Volume {} M.Bluetooth {} M.Backlight {} M.Network {} M.PowerProfile {} M.IdleInhibitor {} M.Weather {} M.Temperature {} M.Cpu {} M.Memory {} M.Disk {} M.Battery {} M.Wlogout {} } } }