2020-10-04 23:03:37 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Qt.labs.platform 1.1
|
2021-09-28 15:04:06 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
2021-09-28 15:04:06 +00:00
|
|
|
import utils 1.0
|
2021-10-06 09:16:39 +00:00
|
|
|
import "../../../../shared"
|
2021-10-14 12:14:11 +00:00
|
|
|
import "../../../../shared/panels"
|
2020-10-04 23:03:37 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
property string name: "Status.im"
|
|
|
|
|
|
|
|
height: 50
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
|
|
|
signal dappClicked(string dapp)
|
|
|
|
|
|
|
|
SVGImage {
|
|
|
|
id: image
|
|
|
|
height: 40
|
|
|
|
width: 40
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 4
|
|
|
|
anchors.left: parent.left
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2021-09-28 15:04:06 +00:00
|
|
|
source: Style.svg("generalDappIcon")
|
2020-10-04 23:03:37 +00:00
|
|
|
}
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
StatusBaseText {
|
2020-10-04 23:03:37 +00:00
|
|
|
id: dappText
|
|
|
|
text: name
|
|
|
|
elide: Text.ElideRight
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
font.pixelSize: 17
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 10
|
|
|
|
anchors.left: image.right
|
|
|
|
anchors.leftMargin: Style.current.padding
|
|
|
|
}
|
|
|
|
|
|
|
|
SVGImage {
|
|
|
|
id: arrow
|
|
|
|
height: 24
|
|
|
|
width: 24
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 10
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2021-09-28 15:04:06 +00:00
|
|
|
source: Style.svg("list-next")
|
2020-10-04 23:03:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
anchors.fill: parent
|
|
|
|
onClicked: dappClicked(name)
|
|
|
|
}
|
|
|
|
}
|