2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.popups 1.0
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
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
|
|
|
|
|
2021-10-01 15:58:36 +00:00
|
|
|
signal shareChatKeyClicked()
|
|
|
|
|
2020-07-08 20:32:46 +00:00
|
|
|
Image {
|
|
|
|
id: walkieTalkieImage
|
2022-11-21 13:40:35 +00:00
|
|
|
objectName: "emptyChatPanelImage"
|
2020-07-08 20:32:46 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2022-05-24 10:46:27 +00:00
|
|
|
source: Style.png("chat/chat@2x")
|
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
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("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
|
|
|
|
}
|
2021-10-01 15:58:36 +00:00
|
|
|
onClicked: shareChatKeyClicked()
|
2021-01-08 11:29:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: orText
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("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
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("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: {
|
2023-08-18 15:01:49 +00:00
|
|
|
Global.openPopup(inviteFriendsPopup)
|
2021-01-08 11:29:31 +00:00
|
|
|
}
|
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 {
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("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
|
|
|
|
}
|
|
|
|
|
2023-08-18 15:01:49 +00:00
|
|
|
Component {
|
2020-07-09 15:21:45 +00:00
|
|
|
id: inviteFriendsPopup
|
2023-08-18 15:01:49 +00:00
|
|
|
InviteFriendsPopup {
|
|
|
|
destroyOnClose: true
|
|
|
|
}
|
2020-07-09 15:21:45 +00:00
|
|
|
}
|
2020-06-17 19:18:31 +00:00
|
|
|
}
|