2020-12-11 15:38:10 -05:00
|
|
|
|
import QtQuick 2.13
|
2021-03-31 15:14:09 -04:00
|
|
|
|
import "../imports"
|
|
|
|
|
import "."
|
|
|
|
|
import "./status"
|
2020-12-11 15:38:10 -05:00
|
|
|
|
|
2021-03-16 15:19:48 -04:00
|
|
|
|
Item {
|
2020-12-11 15:38:10 -05:00
|
|
|
|
id: noContactsRect
|
|
|
|
|
width: 260
|
2021-02-18 11:36:05 -05: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 15:38:10 -05:00
|
|
|
|
StyledText {
|
|
|
|
|
id: noContacts
|
2021-02-01 13:06:21 +01:00
|
|
|
|
text: noContactsRect.text
|
2021-03-29 15:31:18 -04:00
|
|
|
|
color: Style.current.secondaryText
|
2020-12-11 15:38:10 -05:00
|
|
|
|
anchors.top: parent.top
|
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
wrapMode: Text.WordWrap
|
2021-02-01 13:06:21 +01:00
|
|
|
|
font.pixelSize: 15
|
2020-12-11 15:38:10 -05:00
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
}
|
2021-01-28 12:04:10 +01:00
|
|
|
|
StatusButton {
|
2020-12-11 15:38:10 -05:00
|
|
|
|
//% "Invite friends"
|
2021-01-28 12:04:10 +01:00
|
|
|
|
text: qsTrId("invite-friends")
|
2020-12-11 15:38:10 -05:00
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
anchors.top: noContacts.bottom
|
|
|
|
|
anchors.topMargin: Style.current.xlPadding
|
2021-01-06 09:58:44 -05:00
|
|
|
|
onClicked: inviteFriendsPopup.open()
|
2020-12-11 15:38:10 -05:00
|
|
|
|
}
|
|
|
|
|
InviteFriendsPopup {
|
|
|
|
|
id: inviteFriendsPopup
|
|
|
|
|
}
|
|
|
|
|
}
|