Compare commits
2 commits
9cf6853742
...
e3cae59ac3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3cae59ac3 | ||
|
|
3100833fb1 |
2 changed files with 85 additions and 1 deletions
|
|
@ -113,14 +113,44 @@ M.BarSection {
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
id: _headerFreq
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 12
|
anchors.rightMargin: 12
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: root.usage + "% " + root.freqGhz.toFixed(2) + " GHz"
|
text: root.freqGhz.toFixed(2) + " GHz"
|
||||||
color: root.accentColor
|
color: root.accentColor
|
||||||
font.pixelSize: M.Theme.fontSize
|
font.pixelSize: M.Theme.fontSize
|
||||||
font.family: M.Theme.fontFamily
|
font.family: M.Theme.fontFamily
|
||||||
font.bold: true
|
font.bold: true
|
||||||
|
width: _headerFreqSizer.implicitWidth
|
||||||
|
horizontalAlignment: Text.AlignRight
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: _headerFreqSizer
|
||||||
|
visible: false
|
||||||
|
text: "9.99 GHz"
|
||||||
|
font: parent.font
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.right: _headerFreq.left
|
||||||
|
anchors.rightMargin: 6
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
text: root.usage + "%"
|
||||||
|
color: root.accentColor
|
||||||
|
font.pixelSize: M.Theme.fontSize
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.bold: true
|
||||||
|
width: _headerUsageSizer.implicitWidth
|
||||||
|
horizontalAlignment: Text.AlignRight
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: _headerUsageSizer
|
||||||
|
visible: false
|
||||||
|
text: "100%"
|
||||||
|
font: parent.font
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -274,6 +304,33 @@ M.BarSection {
|
||||||
color: M.Theme.base03
|
color: M.Theme.base03
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
width: hoverPanel.contentWidth
|
||||||
|
height: 18
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: 12
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
text: "PROCESS"
|
||||||
|
color: M.Theme.base03
|
||||||
|
font.pixelSize: M.Theme.fontSize - 3
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.letterSpacing: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 12
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
text: "CPU"
|
||||||
|
color: M.Theme.base03
|
||||||
|
font.pixelSize: M.Theme.fontSize - 3
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.letterSpacing: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Top processes by CPU
|
// Top processes by CPU
|
||||||
Repeater {
|
Repeater {
|
||||||
model: root._procs.processes
|
model: root._procs.processes
|
||||||
|
|
|
||||||
|
|
@ -228,6 +228,33 @@ M.BarSection {
|
||||||
color: M.Theme.base03
|
color: M.Theme.base03
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
width: hoverPanel.contentWidth
|
||||||
|
height: 18
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: 12
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
text: "PROCESS"
|
||||||
|
color: M.Theme.base03
|
||||||
|
font.pixelSize: M.Theme.fontSize - 3
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.letterSpacing: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 12
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
text: "MEM"
|
||||||
|
color: M.Theme.base03
|
||||||
|
font.pixelSize: M.Theme.fontSize - 3
|
||||||
|
font.family: M.Theme.fontFamily
|
||||||
|
font.letterSpacing: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Top processes by memory
|
// Top processes by memory
|
||||||
Repeater {
|
Repeater {
|
||||||
model: root._procs.processes
|
model: root._procs.processes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue