use BarLabel instead of Text
This commit is contained in:
parent
ed72d81f3b
commit
6f80224d6c
5 changed files with 14 additions and 24 deletions
|
|
@ -57,11 +57,9 @@ M.BarSection {
|
||||||
color: M.Theme.base08
|
color: M.Theme.base08
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
M.BarLabel {
|
||||||
text: root.usage.toString().padStart(2) + "%@" + root.freqGhz.toFixed(2)
|
label: root.usage.toString().padStart(2) + "%@" + root.freqGhz.toFixed(2)
|
||||||
color: M.Theme.base08
|
color: M.Theme.base08
|
||||||
font.pixelSize: M.Theme.fontSize
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
font.family: M.Theme.fontFamily
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,11 +37,9 @@ M.BarSection {
|
||||||
color: M.Theme.base09
|
color: M.Theme.base09
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
M.BarLabel {
|
||||||
text: root.freePct + "% " + root.totalTb.toFixed(1)
|
label: root.freePct + "% " + root.totalTb.toFixed(1)
|
||||||
color: M.Theme.base09
|
color: M.Theme.base09
|
||||||
font.pixelSize: M.Theme.fontSize
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
font.family: M.Theme.fontFamily
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,11 +37,9 @@ M.BarSection {
|
||||||
color: M.Theme.base0B
|
color: M.Theme.base0B
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
M.BarLabel {
|
||||||
text: root.percent + "%"
|
label: root.percent + "%"
|
||||||
color: M.Theme.base0B
|
color: M.Theme.base0B
|
||||||
font.pixelSize: M.Theme.fontSize
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
font.family: M.Theme.fontFamily
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,12 +64,10 @@ M.BarSection {
|
||||||
color: root.state === "disconnected" ? M.Theme.base08 : M.Theme.base0C
|
color: root.state === "disconnected" ? M.Theme.base08 : M.Theme.base0C
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
M.BarLabel {
|
||||||
visible: root.state === "wifi"
|
visible: root.state === "wifi"
|
||||||
text: root.essid
|
label: root.essid
|
||||||
color: root.state === "disconnected" ? M.Theme.base08 : M.Theme.base0C
|
color: root.state === "disconnected" ? M.Theme.base08 : M.Theme.base0C
|
||||||
font.pixelSize: M.Theme.fontSize + 1
|
|
||||||
font.family: M.Theme.fontFamily
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,9 @@ M.BarSection {
|
||||||
color: root._stateColor
|
color: root._stateColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
Text {
|
M.BarLabel {
|
||||||
text: root.celsius + "\u00B0C"
|
label: root.celsius + "\u00B0C"
|
||||||
color: root._stateColor
|
color: root._stateColor
|
||||||
font.pixelSize: M.Theme.fontSize
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
font.family: M.Theme.fontFamily
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue