mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07:00
Update the background color for the expandable component when using the close button.
Contributes to CURA-5941.
This commit is contained in:
parent
9dc8450db0
commit
9e7a52e28b
1 changed files with 10 additions and 2 deletions
|
|
@ -71,7 +71,15 @@ Item
|
||||||
|
|
||||||
function toggleContent()
|
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
|
implicitHeight: 100 * screenScaleFactor
|
||||||
|
|
@ -82,7 +90,7 @@ Item
|
||||||
id: background
|
id: background
|
||||||
property real padding: UM.Theme.getSize("default_margin").width
|
property real padding: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
color: headerBackgroundColor
|
color: expanded ? headerActiveColor : headerBackgroundColor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Loader
|
Loader
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue