2021-10-21 08:22:05 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
|
2022-07-28 20:56:44 +00:00
|
|
|
import utils 1.0
|
|
|
|
|
2021-10-21 08:22:05 +00:00
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2022-07-28 20:56:44 +00:00
|
|
|
ColumnLayout {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
signal goBack()
|
2021-10-21 08:22:05 +00:00
|
|
|
|
|
|
|
property alias primaryText: collectibleName.text
|
|
|
|
property alias secondaryText: collectibleId.text
|
|
|
|
property StatusImageSettings image: StatusImageSettings {
|
|
|
|
width: 40
|
|
|
|
height: 40
|
|
|
|
}
|
|
|
|
|
2022-07-28 20:56:44 +00:00
|
|
|
StatusFlatButton {
|
|
|
|
Layout.topMargin: -Style.current.xlPadding
|
|
|
|
Layout.leftMargin: -Style.current.xlPadding
|
|
|
|
visible: root.backButtonName != ""
|
|
|
|
icon.name: "arrow-left"
|
|
|
|
icon.width: 20
|
|
|
|
icon.height: 20
|
|
|
|
text: qsTr("Assets")
|
|
|
|
size: StatusBaseButton.Size.Large
|
|
|
|
onClicked: root.goBack()
|
|
|
|
}
|
2021-10-21 08:22:05 +00:00
|
|
|
|
2022-07-28 20:56:44 +00:00
|
|
|
RowLayout {
|
2021-10-21 08:22:05 +00:00
|
|
|
spacing: 8
|
2022-07-28 20:56:44 +00:00
|
|
|
StatusSmartIdenticon {
|
2021-10-21 08:22:05 +00:00
|
|
|
id: identiconLoader
|
2022-07-28 20:56:44 +00:00
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
image: root.image
|
2021-10-21 08:22:05 +00:00
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
id: collectibleName
|
2022-07-28 20:56:44 +00:00
|
|
|
Layout.preferredWidth: Math.min(root.width - identiconLoader.width - collectibleId.width - 24, implicitWidth)
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
2021-10-21 08:22:05 +00:00
|
|
|
font.pixelSize: 28
|
|
|
|
lineHeight: 38
|
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
elide: Text.ElideRight
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
id: collectibleId
|
2022-07-28 20:56:44 +00:00
|
|
|
Layout.alignment: Qt.AlignVCenter
|
2021-10-21 08:22:05 +00:00
|
|
|
font.pixelSize: 28
|
|
|
|
lineHeight: 38
|
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|