2020-12-11 20:38:10 +00:00
|
|
|
|
import QtQuick 2.13
|
|
|
|
|
import "../../../../imports"
|
|
|
|
|
import "../../../../shared"
|
2021-01-28 11:04:10 +00:00
|
|
|
|
import "../../../../shared/status"
|
2020-12-11 20:38:10 +00:00
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
id: noContactsRect
|
|
|
|
|
width: 260
|
2021-02-01 12:06:21 +00:00
|
|
|
|
property string text: qsTr("You don’t have any contacts yet. Invite your friends to start chatting.")
|
2020-12-11 20:38:10 +00:00
|
|
|
|
StyledText {
|
|
|
|
|
id: noContacts
|
2021-02-01 12:06:21 +00:00
|
|
|
|
text: noContactsRect.text
|
2020-12-11 20:38:10 +00:00
|
|
|
|
color: Style.current.darkGrey
|
|
|
|
|
anchors.top: parent.top
|
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
wrapMode: Text.WordWrap
|
2021-02-01 12:06:21 +00:00
|
|
|
|
font.pixelSize: 15
|
2020-12-11 20:38:10 +00:00
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
}
|
2021-01-28 11:04:10 +00:00
|
|
|
|
StatusButton {
|
2020-12-11 20:38:10 +00:00
|
|
|
|
//% "Invite friends"
|
2021-01-28 11:04:10 +00:00
|
|
|
|
text: qsTrId("invite-friends")
|
2020-12-11 20:38:10 +00:00
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
anchors.top: noContacts.bottom
|
|
|
|
|
anchors.topMargin: Style.current.xlPadding
|
2021-01-06 14:58:44 +00:00
|
|
|
|
onClicked: inviteFriendsPopup.open()
|
2020-12-11 20:38:10 +00:00
|
|
|
|
}
|
|
|
|
|
InviteFriendsPopup {
|
|
|
|
|
id: inviteFriendsPopup
|
|
|
|
|
}
|
|
|
|
|
}
|