2020-08-04 22:22:51 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import "../../../../../imports"
|
|
|
|
import "../../../../../shared"
|
2021-01-28 11:04:10 +00:00
|
|
|
import "../../../../../shared/status"
|
2020-08-04 22:22:51 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
property string ensUsername: ""
|
2020-08-07 16:27:41 +00:00
|
|
|
signal okBtnClicked()
|
2020-08-04 22:22:51 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: circle
|
|
|
|
anchors.top: sectionTitle.bottom
|
|
|
|
anchors.topMargin: 24
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
width: 60
|
|
|
|
height: 60
|
|
|
|
radius: 120
|
|
|
|
color: Style.current.blue
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
text: "✓"
|
|
|
|
opacity: 0.7
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 18
|
|
|
|
color: Style.current.white
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: title
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "Username added"
|
|
|
|
text: qsTrId("ens-saved-title")
|
2020-08-04 22:22:51 +00:00
|
|
|
anchors.top: circle.bottom
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 24
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: subtitle
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "%1 is now connected with your chat key and can be used in Status."
|
|
|
|
text: qsTrId("-1-is-now-connected-with-your-chat-key-and-can-be-used-in-status-").arg(ensUsername)
|
2020-08-04 22:22:51 +00:00
|
|
|
anchors.top: title.bottom
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
|
2021-01-28 11:04:10 +00:00
|
|
|
StatusButton {
|
2020-08-04 22:22:51 +00:00
|
|
|
id: startBtn
|
|
|
|
anchors.top: subtitle.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "Ok, got it"
|
2021-01-28 11:04:10 +00:00
|
|
|
text: qsTrId("ens-got-it")
|
2020-08-07 16:27:41 +00:00
|
|
|
onClicked: okBtnClicked()
|
2020-08-04 22:22:51 +00:00
|
|
|
}
|
2020-09-14 12:12:47 +00:00
|
|
|
}
|