62 lines
1.7 KiB
QML
62 lines
1.7 KiB
QML
|
import QtQuick 2.14
|
||
|
import QtQuick.Layouts 1.3
|
||
|
import QtQuick.Controls 2.14
|
||
|
import "../../../../../imports"
|
||
|
import "../../../../../shared"
|
||
|
|
||
|
Item {
|
||
|
property var onClick: function(){}
|
||
|
|
||
|
StyledText {
|
||
|
id: sectionTitle
|
||
|
//% "ENS usernames"
|
||
|
text: qsTrId("ens-usernames")
|
||
|
anchors.left: parent.left
|
||
|
anchors.leftMargin: 24
|
||
|
anchors.top: parent.top
|
||
|
anchors.topMargin: 24
|
||
|
font.weight: Font.Bold
|
||
|
font.pixelSize: 20
|
||
|
}
|
||
|
|
||
|
ScrollView {
|
||
|
id: sview
|
||
|
clip: true
|
||
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||
|
contentHeight: contentItem.childrenRect.height
|
||
|
anchors.top: sectionTitle.bottom
|
||
|
anchors.topMargin: Style.current.padding
|
||
|
anchors.bottom: startBtn.top
|
||
|
anchors.bottomMargin: Style.current.padding
|
||
|
anchors.left: parent.left
|
||
|
anchors.right: parent.right
|
||
|
|
||
|
Item {
|
||
|
id: contentItem
|
||
|
anchors.right: parent.right;
|
||
|
anchors.left: parent.left;
|
||
|
|
||
|
StyledText {
|
||
|
id: title
|
||
|
text: qsTr("TODO: show T&C and confirmation screen for acquiring a ens username")
|
||
|
anchors.top: parent.top
|
||
|
anchors.topMargin: 24
|
||
|
font.weight: Font.Bold
|
||
|
font.pixelSize: 24
|
||
|
anchors.left: parent.left
|
||
|
anchors.right: parent.right
|
||
|
horizontalAlignment: Text.AlignHCenter
|
||
|
wrapMode: Text.WordWrap
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
StyledButton {
|
||
|
id: startBtn
|
||
|
anchors.bottom: parent.bottom
|
||
|
anchors.bottomMargin: Style.current.padding
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
label: qsTr("Ok")
|
||
|
onClicked: onClick()
|
||
|
}
|
||
|
}
|