mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -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
|
when: !expanded
|
||||||
PropertyChanges
|
PropertyChanges
|
||||||
{
|
{
|
||||||
target: descriptionArea
|
target: shortDescription
|
||||||
visible: true
|
visible: true
|
||||||
}
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: downloadCount
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
State
|
State
|
||||||
{
|
{
|
||||||
|
@ -35,9 +40,14 @@ Rectangle
|
||||||
when: expanded
|
when: expanded
|
||||||
PropertyChanges
|
PropertyChanges
|
||||||
{
|
{
|
||||||
target: descriptionArea
|
target: shortDescription
|
||||||
visible: false
|
visible: false
|
||||||
}
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: downloadCount
|
||||||
|
visible: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -192,7 +202,7 @@ Rectangle
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: descriptionArea
|
id: shortDescription
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: parent.width
|
||||||
Layout.fillHeight: true
|
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.
|
// Author and action buttons.
|
||||||
RowLayout
|
RowLayout
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue