CURA-5137 Make some adjustments in the UI.

This commit is contained in:
Diego Prado Gesto 2018-04-04 10:51:19 +02:00
parent 0e01e9a6a9
commit 2bf6615b53
5 changed files with 36 additions and 50 deletions

View file

@ -13,7 +13,7 @@ Item
{
id: base
height: childrenRect.height
Layout.fillWidth: true
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
Row
{
width: parent.width
@ -29,22 +29,28 @@ Item
}
Column
{
width: UM.Theme.getSize("base_unit").width * 12
width: parent.width - thumbnail.width - parent.spacing
spacing: Math.floor(UM.Theme.getSize("base_unit").width / 2)
Label
{
id: name
text: model.name
width: parent.width
wrapMode: Text.WordWrap
height: UM.Theme.getSize("base_unit").height * 2
verticalAlignment: Text.AlignVCenter
color: UM.Theme.getColor("text")
font: UM.Theme.getFont("default_bold")
}
Label
{
id: info
text: model.description
text:
{
if (model.description.length > 50)
{
return model.description.substring(0, 50) + "..."
}
return model.description
}
width: parent.width
wrapMode: Text.WordWrap
color: UM.Theme.getColor("text_medium")