2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQuick.Controls 2.15
|
2024-02-20 09:04:39 +00:00
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
Control {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property alias primaryText: primaryText.text
|
|
|
|
property alias primaryLabel: primaryText
|
|
|
|
property alias content: content.sourceComponent
|
|
|
|
|
|
|
|
padding: 12
|
|
|
|
|
|
|
|
background: Rectangle {
|
2024-10-15 19:26:12 +00:00
|
|
|
radius: Theme.radius
|
2024-02-20 09:04:39 +00:00
|
|
|
border.width: 1
|
|
|
|
border.color: Theme.palette.baseColor2
|
2024-10-15 19:26:12 +00:00
|
|
|
color: Theme.palette.transparent
|
2024-02-20 09:04:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
contentItem: ColumnLayout {
|
|
|
|
spacing: 4
|
|
|
|
StatusBaseText {
|
|
|
|
id: primaryText
|
|
|
|
Layout.fillWidth: true
|
|
|
|
font.pixelSize: 13
|
|
|
|
lineHeight: 18
|
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
color: Theme.palette.directColor5
|
|
|
|
visible: text
|
|
|
|
elide: Text.ElideRight
|
|
|
|
}
|
|
|
|
Loader {
|
|
|
|
id: content
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|