diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-12 23:21:58 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-12 23:21:58 +0800 |
| commit | 1c259d7878c00592916dc6acdb6e22771b22bbf1 (patch) | |
| tree | e78c1513b184a0863e54e83f7365b110ea0301e8 /bar/Cpu.qml | |
| parent | f2056f05b4649d49f9322d5fcea011a51bda2dfe (diff) | |
finish organize
Diffstat (limited to 'bar/Cpu.qml')
| -rw-r--r-- | bar/Cpu.qml | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/bar/Cpu.qml b/bar/Cpu.qml index 5d65415..00cf53c 100644 --- a/bar/Cpu.qml +++ b/bar/Cpu.qml @@ -1,27 +1,14 @@ import QtQuick import QtQuick.Layouts +import qs.components +import qs.config import qs.services as Services -import qs.utils -import qs.config as Config Item { id: root - RowLayout { - Item { - Layout.fillWidth: true - } - anchors.fill: parent - spacing: Config.Bar.resourceIconTextSpacing - - Icons { - text: Config.Icons.resource.cpu - } - Text { - text: Math.round(Services.Resource.cpuUsage * 100) - } - Item { - Layout.fillWidth: true - } + SimpleResource { + text: Math.round(Services.Resource.cpuUsage * 100) + icon: Icons.resource.cpu } } |
