2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-05-28 00:12:07 +00:00
|
|
|
import "../../../../shared"
|
|
|
|
import "../../../../imports"
|
2020-07-09 15:21:45 +00:00
|
|
|
import "../components"
|
2020-05-28 00:12:07 +00:00
|
|
|
|
|
|
|
Item {
|
2020-07-08 20:32:46 +00:00
|
|
|
id: element
|
2020-05-28 00:12:07 +00:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2020-07-08 20:32:46 +00:00
|
|
|
Image {
|
|
|
|
id: walkieTalkieImage
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2021-03-04 07:40:04 +00:00
|
|
|
source: "../../../../onboarding/img/chat@2x.png"
|
2020-07-08 20:32:46 +00:00
|
|
|
}
|
|
|
|
|
2021-01-08 11:29:31 +00:00
|
|
|
Item {
|
|
|
|
id: links
|
2020-07-08 20:32:46 +00:00
|
|
|
anchors.top: walkieTalkieImage.bottom
|
2021-01-08 11:29:31 +00:00
|
|
|
anchors.horizontalCenter: walkieTalkieImage.horizontalCenter
|
|
|
|
height: shareKeyLink.height
|
|
|
|
width: childrenRect.width
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: shareKeyLink
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Share your chat key"
|
|
|
|
text: qsTrId("share-your-chat-key")
|
2021-01-08 11:29:31 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
color: Style.current.blue
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
hoverEnabled: true
|
|
|
|
onEntered: {
|
|
|
|
parent.font.underline = true
|
|
|
|
}
|
|
|
|
onExited: {
|
|
|
|
parent.font.underline = false
|
|
|
|
}
|
|
|
|
onClicked: {
|
2020-11-30 17:03:52 +00:00
|
|
|
openProfilePopup(profileModel.profile.username, profileModel.profile.pubKey, profileModel.profile.thumbnailImage);
|
2021-01-08 11:29:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: orText
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "or"
|
|
|
|
text: qsTrId("or")
|
2021-01-08 11:29:31 +00:00
|
|
|
font.pixelSize: 15
|
2021-02-25 15:40:45 +00:00
|
|
|
color: Style.current.secondaryText
|
2021-01-08 11:29:31 +00:00
|
|
|
anchors.left: shareKeyLink.right
|
|
|
|
anchors.leftMargin: 2
|
|
|
|
anchors.bottom: shareKeyLink.bottom
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: inviteLink
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "invite"
|
|
|
|
text: qsTrId("invite")
|
2021-01-08 11:29:31 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
color: Style.current.blue
|
|
|
|
anchors.left: orText.right
|
|
|
|
anchors.leftMargin: 2
|
|
|
|
anchors.bottom: shareKeyLink.bottom
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
hoverEnabled: true
|
|
|
|
onEntered: {
|
|
|
|
parent.font.underline = true
|
|
|
|
}
|
|
|
|
onExited: {
|
|
|
|
parent.font.underline = false
|
|
|
|
}
|
|
|
|
onClicked: {
|
|
|
|
inviteFriendsPopup.open();
|
|
|
|
}
|
2020-07-08 20:32:46 +00:00
|
|
|
}
|
2020-05-28 00:12:07 +00:00
|
|
|
}
|
|
|
|
}
|
2020-07-09 15:21:45 +00:00
|
|
|
|
2021-01-08 11:29:31 +00:00
|
|
|
StyledText {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "friends to start messaging in Status"
|
|
|
|
text: qsTrId("friends-to-start-messaging-in-status")
|
2021-01-08 11:29:31 +00:00
|
|
|
font.pixelSize: 15
|
2021-02-25 15:40:45 +00:00
|
|
|
color: Style.current.secondaryText
|
2021-01-08 11:29:31 +00:00
|
|
|
anchors.horizontalCenter: walkieTalkieImage.horizontalCenter
|
|
|
|
anchors.top: links.bottom
|
|
|
|
}
|
|
|
|
|
2020-07-09 15:21:45 +00:00
|
|
|
InviteFriendsPopup {
|
|
|
|
id: inviteFriendsPopup
|
|
|
|
}
|
2020-06-17 19:18:31 +00:00
|
|
|
}
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
2020-07-08 20:32:46 +00:00
|
|
|
D{i:0;autoSize:true;formeditorColor:"#ffffff";formeditorZoom:2;height:480;width:640}
|
2020-06-17 19:18:31 +00:00
|
|
|
}
|
|
|
|
##^##*/
|