mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 23:38:53 -07:00
Center icon an label vertically.
Contributes to CURA-5786.
This commit is contained in:
parent
257d482184
commit
f1f1b9f168
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ Item
|
||||||
id: icon
|
id: icon
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
source: UM.Theme.getIcon("dot")
|
source: UM.Theme.getIcon("dot")
|
||||||
width: UM.Theme.getSize("section_icon").width
|
width: UM.Theme.getSize("section_icon").width
|
||||||
|
|
@ -40,6 +41,7 @@ Item
|
||||||
id: label
|
id: label
|
||||||
anchors.left: icon.right
|
anchors.left: icon.right
|
||||||
anchors.leftMargin: UM.Theme.getSize("thin_margin").width
|
anchors.leftMargin: UM.Theme.getSize("thin_margin").width
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: "Empty label"
|
text: "Empty label"
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("very_small")
|
font: UM.Theme.getFont("very_small")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue