blob: 130c9eaffbc7b7afbd41f32e897490d4ad63ab02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import QtQuick
import QtQuick.Layouts
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.memory
}
Text {
text: Math.round(Services.Resource.memoryUsedPercentage * 100) + "%"
}
Item {
Layout.fillWidth: true
}
}
}
|