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

@ -37,11 +37,9 @@ M.BarSection {
color: M.Theme.base0B
anchors.verticalCenter: parent.verticalCenter
}
Text {
text: root.percent + "%"
M.BarLabel {
label: root.percent + "%"
color: M.Theme.base0B
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
anchors.verticalCenter: parent.verticalCenter
}
}