Center icon an label vertically.

Contributes to CURA-5786.
This commit is contained in:
Diego Prado Gesto 2018-11-06 09:45:40 +01:00
parent 257d482184
commit f1f1b9f168

View file

@ -24,6 +24,7 @@ Item
id: icon
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
source: UM.Theme.getIcon("dot")
width: UM.Theme.getSize("section_icon").width
@ -40,6 +41,7 @@ Item
id: label
anchors.left: icon.right
anchors.leftMargin: UM.Theme.getSize("thin_margin").width
anchors.verticalCenter: parent.verticalCenter
text: "Empty label"
color: UM.Theme.getColor("text")
font: UM.Theme.getFont("very_small")