Add download count design to detail card

Just the design. The data is just a placeholder so far.

Contributes to issue CURA-8565.
This commit is contained in:
Ghostkeeper 2021-11-29 18:03:42 +01:00
parent 443ba67455
commit 0dcc28032a
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -25,9 +25,14 @@ Rectangle
when: !expanded
PropertyChanges
{
target: descriptionArea
target: shortDescription
visible: true
}
PropertyChanges
{
target: downloadCount
visible: false
}
},
State
{
@ -35,9 +40,14 @@ Rectangle
when: expanded
PropertyChanges
{
target: descriptionArea
target: shortDescription
visible: false
}
PropertyChanges
{
target: downloadCount
visible: true
}
}
]
@ -192,7 +202,7 @@ Rectangle
Item
{
id: descriptionArea
id: shortDescription
Layout.preferredWidth: parent.width
Layout.fillHeight: true
@ -259,6 +269,32 @@ Rectangle
}
}
Row
{
id: downloadCount
Layout.preferredWidth: parent.width
Layout.fillHeight: true
UM.RecolorImage
{
id: downloadsIcon
width: UM.Theme.getSize("card_tiny_icon").width
height: UM.Theme.getSize("card_tiny_icon").height
source: UM.Theme.getIcon("Download")
color: UM.Theme.getColor("text")
}
Label
{
anchors.verticalCenter: downloadsIcon.verticalCenter
color: UM.Theme.getColor("text")
font: UM.Theme.getFont("default")
text: "123456789"
}
}
// Author and action buttons.
RowLayout
{