2020-09-29 08:41:27 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.3
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-09-29 08:41:27 +00:00
|
|
|
import "../../shared"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
property string packThumb: "QmfZrHmLR5VvkXSDbArDR3TX6j4FgpDcrvNz2fHSJk1VvG"
|
|
|
|
property string packName: "Status Cat"
|
|
|
|
property string packAuthor: "cryptoworld1373"
|
|
|
|
property int packNameFontSize: 15
|
|
|
|
property int spacing: Style.current.padding
|
|
|
|
|
2021-03-26 21:21:50 +00:00
|
|
|
height: childrenRect.height
|
|
|
|
width: parent.width
|
|
|
|
|
2020-09-29 08:41:27 +00:00
|
|
|
RoundedImage {
|
|
|
|
id: imgThumb
|
|
|
|
anchors.left: parent.left
|
|
|
|
width: 40
|
|
|
|
height: 40
|
|
|
|
source: "https://ipfs.infura.io/ipfs/" + packThumb
|
|
|
|
}
|
2021-03-26 21:21:50 +00:00
|
|
|
|
2020-09-29 08:41:27 +00:00
|
|
|
Column {
|
|
|
|
anchors.left: imgThumb.right
|
|
|
|
anchors.leftMargin: root.spacing
|
2021-03-26 21:21:50 +00:00
|
|
|
StyledText {
|
2020-09-29 08:41:27 +00:00
|
|
|
id: txtPackName
|
|
|
|
text: packName
|
|
|
|
font.family: Style.current.fontBold.name
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: packNameFontSize
|
|
|
|
}
|
2021-03-26 21:21:50 +00:00
|
|
|
StyledText {
|
|
|
|
color: Style.current.secondaryText
|
2020-09-29 08:41:27 +00:00
|
|
|
text: packAuthor
|
|
|
|
font.family: Style.current.fontRegular.name
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
|
|
|
}
|
2021-03-26 21:21:50 +00:00
|
|
|
|
|
|
|
Separator {
|
|
|
|
anchors.top: imgThumb.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: -Style.current.padding
|
2020-09-29 08:41:27 +00:00
|
|
|
anchors.right: parent.right
|
2021-03-26 21:21:50 +00:00
|
|
|
anchors.rightMargin: -Style.current.padding
|
2020-09-29 08:41:27 +00:00
|
|
|
}
|
|
|
|
}
|