2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQuick.Controls 2.15
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-06 09:16:39 +00:00
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
2024-07-18 20:10:24 +00:00
|
|
|
import StatusQ.Components 0.1
|
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
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
StatusBaseText {
|
2020-08-04 22:22:51 +00:00
|
|
|
id: sectionTitle
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("ENS usernames")
|
2020-08-04 22:22:51 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 20
|
2021-11-01 09:42:00 +00:00
|
|
|
color: Theme.palette.directColor1
|
2024-07-18 20:10:24 +00:00
|
|
|
|
|
|
|
StatusBetaTag {
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.left: parent.right
|
|
|
|
anchors.leftMargin: 7
|
|
|
|
}
|
2020-08-04 22:22:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
// TODO: replace with StatusQ component
|
2020-08-04 22:22:51 +00:00
|
|
|
Rectangle {
|
|
|
|
id: circle
|
|
|
|
anchors.top: sectionTitle.bottom
|
|
|
|
anchors.topMargin: 24
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
width: 60
|
|
|
|
height: 60
|
|
|
|
radius: 120
|
2021-10-06 09:16:39 +00:00
|
|
|
color: Theme.palette.primaryColor1
|
2020-08-04 22:22:51 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
StatusBaseText {
|
2020-08-04 22:22:51 +00:00
|
|
|
text: "✓"
|
|
|
|
opacity: 0.7
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 18
|
2021-10-06 09:16:39 +00:00
|
|
|
color: Theme.palette.indirectColor1
|
2020-08-04 22:22:51 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
StatusBaseText {
|
2020-08-04 22:22:51 +00:00
|
|
|
id: title
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Username added")
|
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
|
2021-11-01 09:42:00 +00:00
|
|
|
color: Theme.palette.directColor1
|
2020-08-04 22:22:51 +00:00
|
|
|
}
|
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
StatusBaseText {
|
2020-08-04 22:22:51 +00:00
|
|
|
id: subtitle
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("%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-11-01 09:42:00 +00:00
|
|
|
color: Theme.palette.directColor1
|
2020-08-04 22:22:51 +00:00
|
|
|
}
|
|
|
|
|
2021-01-28 11:04:10 +00:00
|
|
|
StatusButton {
|
2020-08-04 22:22:51 +00:00
|
|
|
id: startBtn
|
|
|
|
anchors.top: subtitle.bottom
|
2024-10-15 19:26:12 +00:00
|
|
|
anchors.topMargin: Theme.padding
|
2020-08-04 22:22:51 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Ok, 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
|
|
|
}
|