2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-10-28 00:27:49 +03:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.popups 1.0
|
2021-09-28 18:04:06 +03:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-05-27 20:12:07 -04:00
|
|
|
|
|
|
|
Item {
|
2020-07-08 16:32:46 -04:00
|
|
|
id: element
|
2020-05-27 20:12:07 -04:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2022-01-28 09:19:49 +01:00
|
|
|
property var rootStore
|
2021-10-01 18:58:36 +03:00
|
|
|
|
|
|
|
signal shareChatKeyClicked()
|
|
|
|
|
2020-07-08 16:32:46 -04:00
|
|
|
Image {
|
|
|
|
id: walkieTalkieImage
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2022-05-24 13:46:27 +03:00
|
|
|
source: Style.png("chat/chat@2x")
|
2020-07-08 16:32:46 -04:00
|
|
|
}
|
|
|
|
|
2021-01-08 12:29:31 +01:00
|
|
|
Item {
|
|
|
|
id: links
|
2020-07-08 16:32:46 -04:00
|
|
|
anchors.top: walkieTalkieImage.bottom
|
2021-01-08 12:29:31 +01:00
|
|
|
anchors.horizontalCenter: walkieTalkieImage.horizontalCenter
|
|
|
|
height: shareKeyLink.height
|
|
|
|
width: childrenRect.width
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: shareKeyLink
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("Share your chat key")
|
2021-01-08 12:29:31 +01: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
|
|
|
|
}
|
2021-10-01 18:58:36 +03:00
|
|
|
onClicked: shareChatKeyClicked()
|
2021-01-08 12:29:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: orText
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("or")
|
2021-01-08 12:29:31 +01:00
|
|
|
font.pixelSize: 15
|
2021-02-25 19:40:45 +04:00
|
|
|
color: Style.current.secondaryText
|
2021-01-08 12:29:31 +01:00
|
|
|
anchors.left: shareKeyLink.right
|
|
|
|
anchors.leftMargin: 2
|
|
|
|
anchors.bottom: shareKeyLink.bottom
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: inviteLink
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("invite")
|
2021-01-08 12:29:31 +01: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 16:32:46 -04:00
|
|
|
}
|
2020-05-27 20:12:07 -04:00
|
|
|
}
|
|
|
|
}
|
2020-07-09 11:21:45 -04:00
|
|
|
|
2021-01-08 12:29:31 +01:00
|
|
|
StyledText {
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("friends to start messaging in Status")
|
2021-01-08 12:29:31 +01:00
|
|
|
font.pixelSize: 15
|
2021-02-25 19:40:45 +04:00
|
|
|
color: Style.current.secondaryText
|
2021-01-08 12:29:31 +01:00
|
|
|
anchors.horizontalCenter: walkieTalkieImage.horizontalCenter
|
|
|
|
anchors.top: links.bottom
|
|
|
|
}
|
|
|
|
|
2020-07-09 11:21:45 -04:00
|
|
|
InviteFriendsPopup {
|
|
|
|
id: inviteFriendsPopup
|
2022-01-28 09:19:49 +01:00
|
|
|
rootStore: element.rootStore
|
2020-07-09 11:21:45 -04:00
|
|
|
}
|
2020-06-17 15:18:31 -04:00
|
|
|
}
|