mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
CURA-5137 Make some adjustments in the UI.
This commit is contained in:
parent
0e01e9a6a9
commit
2bf6615b53
5 changed files with 36 additions and 50 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue