diff --git a/modules/Cpu.qml b/modules/Cpu.qml index 8346635..58d41e7 100644 --- a/modules/Cpu.qml +++ b/modules/Cpu.qml @@ -113,14 +113,44 @@ M.BarSection { } Text { + id: _headerFreq anchors.right: parent.right anchors.rightMargin: 12 anchors.verticalCenter: parent.verticalCenter - text: root.usage + "% " + root.freqGhz.toFixed(2) + " GHz" + text: root.freqGhz.toFixed(2) + " GHz" color: root.accentColor font.pixelSize: M.Theme.fontSize font.family: M.Theme.fontFamily 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 + } } }