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

@ -29,11 +29,9 @@ M.BarSection {
color: root._stateColor
anchors.verticalCenter: parent.verticalCenter
}
Text {
text: root.celsius + "\u00B0C"
M.BarLabel {
label: root.celsius + "\u00B0C"
color: root._stateColor
font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
anchors.verticalCenter: parent.verticalCenter
}
}