[ui] StatViewer: fix "Toggle CPU" button

use MaterialLabel instead of Text
This commit is contained in:
Yann Lanthony 2019-08-06 10:30:10 +02:00
parent 001d9a3de8
commit aedf10c838
No known key found for this signature in database
GPG key ID: 519FAE6DF7A70642

View file

@ -320,16 +320,14 @@ Item {
Button {
id: toggleCpuBtn
Layout.fillWidth: true
height: 30
text: "Toggle CPU's"
state: "closed"
onClicked: state === "opened" ? state = "closed" : state = "opened"
Text {
MaterialLabel {
text: MaterialIcons.arrow_drop_down
font.pixelSize: 24
color: "#eee"
font.pointSize: 14
anchors.right: parent.right
}