mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
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:
parent
15884a66e8
commit
a9968acd6d
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue