blob: 3559df0e1d8482b56a89314f4b8e6ea470bbf436 (
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
28
29
30
31
32
33
34
|
import QtQuick
import QtQuick.Layouts
import qs.services as Services
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: Services.Network.state
}
Text {
text: Math.round(Services.Resource.cpuUsage * 100)
}
Text {
text: Services.NetworkUsage.up + " " + Services.NetworkUsage.upUnit
}
Text {
text: Services.NetworkUsage.down + " " + Services.NetworkUsage.downUnit
}
Item {
Layout.fillWidth: true
}
}
}
|