mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Give text in labels specific width so icons stay aligned
This commit is contained in:
parent
cdcba23f02
commit
c155fb67a4
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,7 @@ Item
|
||||||
id: infillCellRight
|
id: infillCellRight
|
||||||
|
|
||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
width: base.width * .5
|
width: base.width * .55
|
||||||
|
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
|
@ -169,6 +169,10 @@ Item
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
id: infillLabel
|
id: infillLabel
|
||||||
|
width: (infillCellRight.width - ((infillModel.count - 1) * UM.Theme.getSize("default_margin").width)) / (infillModel.count);
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
anchors.top: infillIconLining.bottom
|
anchors.top: infillIconLining.bottom
|
||||||
anchors.horizontalCenter: infillIconLining.horizontalCenter
|
anchors.horizontalCenter: infillIconLining.horizontalCenter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue