64 lines
1.9 KiB
QML
64 lines
1.9 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
|
|
//% "TODO: show T&C and confirmation screen for acquiring a ens username"
|
|
text: qsTrId("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
|
|
//% "Ok"
|
|
label: qsTrId("ok")
|
|
onClicked: onClick()
|
|
}
|
|
} |