diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-12 23:57:06 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-12 23:57:06 +0800 |
| commit | f01658cd6da6ccfab9b59478d427511d4179c383 (patch) | |
| tree | 268088f8c6071a85b64ea3fa333f4a675de95954 /bar | |
| parent | 1c259d7878c00592916dc6acdb6e22771b22bbf1 (diff) | |
finallyt fucking finished unstyled bar (also no interactivity)
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Bar.qml | 4 | ||||
| -rw-r--r-- | bar/Power.qml | 21 |
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 } |
