Merge PR #686: Align font sizes across energy views
This commit is contained in:
commit
b0b2f91aab
@ -70,13 +70,6 @@ ThingPageBase {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: background.contentItem.width * .6
|
width: background.contentItem.width * .6
|
||||||
spacing: Style.margins
|
spacing: Style.margins
|
||||||
Label {
|
|
||||||
text: qsTr("Maximum charging current")
|
|
||||||
font: Style.smallFont
|
|
||||||
width: parent.width
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
}
|
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
font: Style.largeFont
|
font: Style.largeFont
|
||||||
@ -84,6 +77,14 @@ ThingPageBase {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Label {
|
||||||
|
text: qsTr("Maximum charging current")
|
||||||
|
font: Style.smallFont
|
||||||
|
width: parent.width
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Dial {
|
Dial {
|
||||||
|
|||||||
@ -140,11 +140,12 @@ ThingPageBase {
|
|||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font: Style.hugeFont
|
font: Style.largeFont
|
||||||
property bool toKilos: currentPower >= 1000
|
property bool toKilos: currentPower >= 1000
|
||||||
property double value: Math.abs(currentPower / (toKilos ? 1000 : 1))
|
property double value: Math.abs(currentPower / (toKilos ? 1000 : 1))
|
||||||
text: "%1 %2".arg(value.toFixed(toKilos ? 2 : 1)).arg(toKilos ? "kW" : "W")
|
text: "%1 %2".arg(value.toFixed(toKilos ? 2 : 1)).arg(toKilos ? "kW" : "W")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
@ -171,10 +172,11 @@ ThingPageBase {
|
|||||||
font: Style.smallFont
|
font: Style.smallFont
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font: Style.hugeFont
|
font: Style.bigFont
|
||||||
visible: batteryLevelState
|
visible: batteryLevelState
|
||||||
text: "%1 %".arg(batteryLevelState ? batteryLevelState.value : "")
|
text: "%1 %".arg(batteryLevelState ? batteryLevelState.value : "")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user