mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Communicate to PackageCard whether it is a detailed card or not
If it is detailed, it currently hides the short description. That is not quite enough, but we'll expand that behaviour. Contributes to issue CURA-8565.
This commit is contained in:
parent
61fdd5dc72
commit
8ecd2f86a4
2 changed files with 7 additions and 4 deletions
|
@ -11,6 +11,7 @@ import Cura 1.6 as Cura
|
|||
Rectangle
|
||||
{
|
||||
property var packageData
|
||||
property bool expanded: false
|
||||
|
||||
height: UM.Theme.getSize("card").height
|
||||
color: UM.Theme.getColor("main_background")
|
||||
|
@ -21,7 +22,7 @@ Rectangle
|
|||
State
|
||||
{
|
||||
name: "Folded"
|
||||
when: true // TODO
|
||||
when: !expanded
|
||||
PropertyChanges
|
||||
{
|
||||
target: descriptionArea
|
||||
|
@ -30,8 +31,8 @@ Rectangle
|
|||
},
|
||||
State
|
||||
{
|
||||
name: "Header"
|
||||
when: false // TODO
|
||||
name: "Expanded"
|
||||
when: expanded
|
||||
PropertyChanges
|
||||
{
|
||||
target: descriptionArea
|
||||
|
|
|
@ -69,7 +69,6 @@ Item
|
|||
|
||||
PackageCard
|
||||
{
|
||||
packageData: detailPage.packageData
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
|
@ -79,6 +78,9 @@ Item
|
|||
top: parent.top
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
|
||||
packageData: detailPage.packageData
|
||||
expanded: true
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue