use BarLabel instead of Text

This commit is contained in:
Damocles 2026-04-12 14:52:23 +02:00
parent ed72d81f3b
commit 6f80224d6c
5 changed files with 14 additions and 24 deletions

View file

@ -57,11 +57,9 @@ M.BarSection {
color: M.Theme.base08
anchors.verticalCenter: parent.verticalCenter
}
Text {
text: root.usage.toString().padStart(2) + "%@" + root.freqGhz.toFixed(2)
M.BarLabel {
label: root.usage.toString().padStart(2) + "%@" + root.freqGhz.toFixed(2)
color: M.Theme.base08
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
anchors.verticalCenter: parent.verticalCenter
}
}