import QtQuick
import QtQuick.Layouts
import QtQuick.Controls

Menu {

    default property alias content: container.data
    property bool animEnabled: false
    id: popup
    width: 140
    height: container.height
    modal:true
    dim:false
    enter: Transition {
        NumberAnimation {
            property: "y"
            from:0
            to:popup.y
            duration: animEnabled ? 150 : 0
        }
        NumberAnimation {
            property: "opacity"
            from:0
            to:1
            duration: animEnabled ? 150 : 0
        }
    }
    background:Item{}
    contentItem: Item {
        Rectangle{
            anchors.fill: parent
            color:FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,0.97) : Qt.rgba(237/255,237/255,237/255,0.97)
            radius: 5
        }
        FluShadow{
            radius: 5
        }
        Column{
            spacing: 5
            topPadding: 5
            bottomPadding: 5
            width: popup.width
            id:container
            function closePopup(){
                popup.close()
            }
        }
    }
}
