import QtQuick // A raised surface with a hairline border and the standard radius. // // Put children in the `content` column; they should set `width: parent.width` // for full-width content, and their implicit heights determine the card's. Rectangle { id: card default property alias content: col.data property int padding: Theme.pad property int spacing: 10 property color fill: Theme.surface property bool outlined: true color: fill radius: Theme.radius border.width: outlined ? 1 : 0 border.color: Theme.border implicitWidth: 320 implicitHeight: col.implicitHeight + padding * 2 Column { id: col anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top anchors.margins: card.padding spacing: card.spacing } }