summaryrefslogtreecommitdiff
path: root/bar
diff options
context:
space:
mode:
Diffstat (limited to 'bar')
-rw-r--r--bar/Bar.qml4
-rw-r--r--bar/Power.qml21
2 files changed, 22 insertions, 3 deletions
diff --git a/bar/Bar.qml b/bar/Bar.qml
index df4c081..0591152 100644
--- a/bar/Bar.qml
+++ b/bar/Bar.qml
@@ -76,6 +76,10 @@ Scope {
implicitWidth: (child.width - centerRow.width) / 2
implicitHeight: child.height
+ Power {
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
TimeDate {
Layout.fillHeight: true
Layout.fillWidth: true
diff --git a/bar/Power.qml b/bar/Power.qml
index 93da141..f9a74ed 100644
--- a/bar/Power.qml
+++ b/bar/Power.qml
@@ -4,6 +4,7 @@ import QtQuick.Layouts
import qs.services as Services
import qs.utils
import qs.config as Config
+import qs.components
Item {
id: root
@@ -15,11 +16,25 @@ Item {
spacing: Config.Bar.resourceIconTextSpacing
Icons {
- text: Config.Icons.resource.clock
+ text: Config.Icons.power.shutdown
}
- Text {
- text: Services.TimeDate.time
+
+ Icons {
+ text: Config.Icons.power.dpms
+ }
+
+ Icons {
+ text: Config.Icons.power.lock
+ }
+
+ Icons {
+ text: Config.Icons.power.suspend
+ }
+
+ Icons {
+ text: Config.Icons.power.reboot
}
+
Item {
Layout.fillWidth: true
}