mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
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:
parent
443ba67455
commit
0dcc28032a
1 changed files with 39 additions and 3 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue