use BarLabel instead of Text
This commit is contained in:
parent
ed72d81f3b
commit
6f80224d6c
5 changed files with 14 additions and 24 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue