2020-12-11 20:38:10 +00:00
|
|
|
|
import QtQuick 2.13
|
2021-03-31 19:14:09 +00:00
|
|
|
|
import "../imports"
|
|
|
|
|
import "."
|
|
|
|
|
import "./status"
|
2020-12-11 20:38:10 +00:00
|
|
|
|
|
2021-03-16 19:19:48 +00:00
|
|
|
|
Item {
|
2020-12-11 20:38:10 +00:00
|
|
|
|
id: noContactsRect
|
|
|
|
|
width: 260
|
2021-02-18 16:36:05 +00:00
|
|
|
|
//% "You don’t have any contacts yet. Invite your friends to start chatting."
|
|
|
|
|
property string text: qsTrId("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
|
2021-03-29 19:31:18 +00:00
|
|
|
|
color: Style.current.secondaryText
|
2020-12-11 20:38:10 +00:00
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
}
|