Add soft animation to the entire popup and not only in the background.

This prevents the content to show before the background.

Contributes to CURA-5784.
This commit is contained in:
Diego Prado Gesto 2018-11-11 13:16:38 +01:00
parent 3669a3791d
commit f65b1f8fbc

View file

@ -51,6 +51,9 @@ Button
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
opacity: opened ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 100 } }
contentItem: AccountDetails
{
id: panel
@ -61,8 +64,6 @@ Button
background: UM.PointingRectangle
{
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 100 } }
color: UM.Theme.getColor("tool_panel_background")
borderColor: UM.Theme.getColor("lining")
borderWidth: UM.Theme.getSize("default_lining").width