Improve panes system and add battery pane

This commit is contained in:
2026-02-26 02:50:28 -08:00
parent 86cf291663
commit a3ffbc80c5
41 changed files with 528 additions and 273 deletions

43
Panes/Status.qml Normal file
View File

@@ -0,0 +1,43 @@
import Quickshell
import QtQuick
import "../Widgets" as Widgets
Item {
width: 800
height: 42
anchors {
top: parent.top
horizontalCenter: parent.horizontalCenter
}
Row {
anchors {
top: parent.top
left: parent.left
bottom: parent.bottom
leftMargin: 0
}
Widgets.Battery {}
}
Widgets.Workspaces {
height: parent.height
anchors {
top: parent.top
bottom: parent.bottom
horizontalCenter: parent.horizontalCenter
}
}
Row {
anchors {
top: parent.top
right: parent.right
bottom: parent.bottom
rightMargin: 12
}
Text {
anchors.verticalCenter: parent.verticalCenter
property var clock: SystemClock {}
color: "white"
text: Qt.formatDateTime(clock.date, "ddd MMM dd · hh:mm")
}
}
}