[app] Fade truncated title

This commit is contained in:
Slava Monich 2015-09-12 19:24:45 +03:00
parent 63c2ea50a3
commit 9f7c751e8d

View file

@ -73,8 +73,9 @@ Item {
smooth: true
height: Theme.itemSizeExtraSmall
font.pixelSize: Theme.fontSizeSmall
horizontalAlignment: Text.AlignHCenter
horizontalAlignment: contentWidth > Math.ceil(width) ? Text.AlignLeft : Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
truncationMode: TruncationMode.Fade
maximumLineCount: 1
}
}