32 lines
682 B
QML
32 lines
682 B
QML
import QtQuick
|
|
import "../../config" as Cfg
|
|
|
|
Rectangle {
|
|
id: card
|
|
|
|
anchors { left: parent.left; right: parent.right }
|
|
|
|
implicitHeight: contentArea.childrenRect.height + 28
|
|
|
|
radius: Cfg.Config.popupRadius
|
|
color: Cfg.Config.theme.bgPopup
|
|
border.color: Qt.alpha(Cfg.Config.theme.accent, 0.18)
|
|
border.width: 1
|
|
clip: true
|
|
|
|
default property alias content: contentArea.data
|
|
|
|
Item {
|
|
id: contentArea
|
|
anchors {
|
|
top: parent.top
|
|
left: parent.left
|
|
right: parent.right
|
|
topMargin: 14
|
|
leftMargin: 14
|
|
rightMargin: 14
|
|
}
|
|
height: childrenRect.height
|
|
}
|
|
}
|