mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:49:00 +08: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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user