63 lines
1.2 KiB
QML
63 lines
1.2 KiB
QML
import Quickshell // for PanelWindow
|
|
import QtQuick // for Text
|
|
import QtQuick.Shapes
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Quickshell.Io
|
|
import Quickshell.Widgets
|
|
import Quickshell.Wayland
|
|
import Quickshell.Hyprland
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: leftRect
|
|
|
|
property real reserve: width
|
|
|
|
required property QsWindow window
|
|
|
|
implicitHeight: parent.height
|
|
|
|
implicitWidth: 40
|
|
|
|
color: Pywal.special.background
|
|
|
|
|
|
Launcher {
|
|
id: launcher
|
|
x: parent.width / 2 - implicitWidth / 2
|
|
y: implicitWidth / 3
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
}
|
|
|
|
Workspaces {
|
|
id: workspaces
|
|
x: parent.width / 2 - implicitWidth / 2
|
|
y: 20 + launcher.y + launcher.height
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
|
}
|
|
|
|
IdleInhibitor {
|
|
x: parent.width / 2 - width / 2
|
|
y: battery.y - height - 20
|
|
id: idleInhibitor
|
|
}
|
|
|
|
Battery {
|
|
id: battery
|
|
x: parent.width / 2 - width / 2
|
|
y: tray.y - height - 20
|
|
}
|
|
|
|
Tray {
|
|
id: tray
|
|
x: parent.width / 2 - width / 2
|
|
y: leftRect.y + leftRect.height - height - 100
|
|
window: leftRect.window
|
|
popupOffset: x + leftRect.width
|
|
}
|
|
|
|
|
|
}
|