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
|
|
|
|
source: "../../../../onboarding/img/chat@2x.jpg"
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
2020-10-26 15:56:48 +00:00
|
|
|
text: `<a href="shareKey" style="color:${Style.current.blue};text-decoration:none;">` +
|
|
|
|
//% "Share your chat key"
|
|
|
|
qsTrId("share-your-chat-key")
|
|
|
|
+ '</a> ' +
|
|
|
|
//% "or"
|
|
|
|
qsTrId("or")
|
|
|
|
+ ` <a href="invite" style="color:${Style.current.blue};text-decoration:none;">` +
|
|
|
|
//% "invite"
|
|
|
|
qsTrId("invite")
|
|
|
|
+ '</a> ' +
|
|
|
|
//% "friends to start messaging in Status"
|
|
|
|
qsTrId("friends-to-start-messaging-in-status")
|
2020-07-08 20:32:46 +00:00
|
|
|
textFormat: Text.RichText
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
anchors.right: walkieTalkieImage.right
|
|
|
|
anchors.left: walkieTalkieImage.left
|
|
|
|
anchors.top: walkieTalkieImage.bottom
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Style.current.darkGrey
|
|
|
|
onLinkActivated: function (linkClicked) {
|
|
|
|
switch (linkClicked) {
|
2020-07-09 17:12:28 +00:00
|
|
|
case "shareKey":
|
2020-11-30 17:03:52 +00:00
|
|
|
openProfilePopup(profileModel.profile.username, profileModel.profile.pubKey, profileModel.profile.thumbnailImage);
|
2020-07-09 17:12:28 +00:00
|
|
|
break;
|
2020-07-09 15:21:45 +00:00
|
|
|
case "invite": inviteFriendsPopup.open(); break;
|
2020-07-08 20:32:46 +00:00
|
|
|
default: //no idea what was clicked
|
|
|
|
}
|
2020-05-28 00:12:07 +00:00
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
##^##*/
|