summaryrefslogtreecommitdiff
path: root/bar/Memory.qml
diff options
context:
space:
mode:
Diffstat (limited to 'bar/Memory.qml')
-rw-r--r--bar/Memory.qml21
1 files changed, 4 insertions, 17 deletions
diff --git a/bar/Memory.qml b/bar/Memory.qml
index 130c9ea..30a17e6 100644
--- a/bar/Memory.qml
+++ b/bar/Memory.qml
@@ -2,26 +2,13 @@ import QtQuick
import QtQuick.Layouts
import qs.services as Services
-import qs.utils
+import qs.components
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.memory
- }
- Text {
- text: Math.round(Services.Resource.memoryUsedPercentage * 100) + "%"
- }
- Item {
- Layout.fillWidth: true
- }
+ SimpleResource {
+ icon: Config.Icons.resource.memory
+ text: Math.round(Services.Resource.memoryUsedPercentage * 100) + "%"
}
}