Improve panes system and add battery pane
This commit is contained in:
43
Panes/Status.qml
Normal file
43
Panes/Status.qml
Normal 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")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user