Reuse the RoundedRectangle component and indicate that only the bottom part of the popup should be rounded.

Contributes to CURA-5942.
This commit is contained in:
Diego Prado Gesto 2018-11-26 15:51:36 +01:00
parent 67cba50e9b
commit 3d1157522a

View file

@ -2,6 +2,7 @@ import QtQuick 2.7
import QtQuick.Controls 2.3
import UM 1.2 as UM
import Cura 1.0 as Cura
// The expandable component has 3 major sub components:
// * The headerItem; Always visible and should hold some info about what happens if the component is expanded
@ -162,8 +163,9 @@ Item
padding: UM.Theme.getSize("default_margin").width
closePolicy: Popup.CloseOnPressOutsideParent
background: Rectangle
background: Cura.RoundedRectangle
{
cornerSide: Cura.RoundedRectangle.Direction.Down
color: popupBackgroundColor
border.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("lining")