From f01658cd6da6ccfab9b59478d427511d4179c383 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 12 Jul 2025 23:57:06 +0800 Subject: finallyt fucking finished unstyled bar (also no interactivity) --- bar/Bar.qml | 4 ++++ bar/Power.qml | 21 ++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) (limited to 'bar') 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 } -- cgit v1.2.3