Update the background color for the expandable component when using the close button.

Contributes to CURA-5941.
This commit is contained in:
Diego Prado Gesto 2018-12-10 09:43:50 +01:00
parent 9dc8450db0
commit 9e7a52e28b

View file

@ -71,7 +71,15 @@ Item
function toggleContent()
{
content.visible = !content.visible
content.visible = !expanded
}
// Add this binding since the background color is not updated otherwise
Binding
{
target: background
property: "color"
value: expanded ? headerActiveColor : headerBackgroundColor
}
implicitHeight: 100 * screenScaleFactor
@ -82,7 +90,7 @@ Item
id: background
property real padding: UM.Theme.getSize("default_margin").width
color: headerBackgroundColor
color: expanded ? headerActiveColor : headerBackgroundColor
anchors.fill: parent
Loader