diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-13 21:51:30 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-13 21:51:30 +0800 |
| commit | e86931545352387e7a8c5929dee2e9934d042800 (patch) | |
| tree | 52935af186e3592241bc9096e093e9d34bb0c365 /bar/Cpu.qml | |
| parent | 8e31e45ffa1b0029c91556ca29337eb7162dfd1d (diff) | |
finish style bar(almost)
Diffstat (limited to 'bar/Cpu.qml')
| -rw-r--r-- | bar/Cpu.qml | 6 |
1 files changed, 5 insertions, 1 deletions
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 } |
