From e86931545352387e7a8c5929dee2e9934d042800 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 21:51:30 +0800 Subject: finish style bar(almost) --- bar/Cpu.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bar/Cpu.qml') diff --git a/bar/Cpu.qml b/bar/Cpu.qml index 00cf53c..ee39f54 100644 --- a/bar/Cpu.qml +++ b/bar/Cpu.qml @@ -6,8 +6,12 @@ import qs.config import qs.services as Services Item { - id: root + implicitWidth: resource.implicitWidth + implicitHeight: resource.implicitHeight + SimpleResource { + id: resource + text: Math.round(Services.Resource.cpuUsage * 100) icon: Icons.resource.cpu } -- cgit v1.2.3