Fix misalignment of images if the displayName spans to next line

When the displayname of the app is long and it spans to the next line, it was pushing the icon up in the column, making it seem like it is misaligned. This is now fixed and the icons should be aligned regardless if the display name has one or two lines.

CURA-8421
This commit is contained in:
Konstantinos Karmas 2021-09-20 16:42:22 +02:00
parent 15884a66e8
commit a9968acd6d
3 changed files with 5 additions and 5 deletions

View file

@ -36,7 +36,6 @@ Button
{
id: applicationButtonContent
anchors.centerIn: parent
spacing: UM.Theme.getSize("default_margin").width
UM.RecolorImage
{
@ -91,8 +90,9 @@ Button
anchors.horizontalCenter: parent.horizontalCenter
width: base.width - UM.Theme.getSize("default_margin").width
height: base.height - applicationIcon.height - 2 * UM.Theme.getSize("default_margin").width // Account for the top and bottom margins
horizontalAlignment: Text.AlignHCenter
maximumLineCount: 2
verticalAlignment: Text.AlignVCenter
wrapMode: Text.Wrap
elide: Text.ElideRight
}