mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-29 17:45:45 +08:00
Give text in labels specific width so icons stay aligned
This commit is contained in:
parent
df3425e9e6
commit
f630f9c464
@ -53,7 +53,7 @@ Item
|
||||
id: infillCellRight
|
||||
|
||||
height: childrenRect.height;
|
||||
width: base.width * .5
|
||||
width: base.width * .55
|
||||
|
||||
spacing: UM.Theme.getSize("default_margin").width
|
||||
|
||||
@ -169,6 +169,10 @@ Item
|
||||
Text
|
||||
{
|
||||
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")
|
||||
anchors.top: infillIconLining.bottom
|
||||
anchors.horizontalCenter: infillIconLining.horizontalCenter
|
||||
|
Loading…
x
Reference in New Issue
Block a user