2020-12-11 20:38:10 +00:00
|
|
|
|
import QtQuick 2.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-21 15:07:13 +00:00
|
|
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
2021-10-14 11:38:06 +00:00
|
|
|
|
import "../popups"
|
2021-10-14 13:09:35 +00:00
|
|
|
|
import "../panels"
|
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-")
|
2021-07-13 07:56:18 +00:00
|
|
|
|
property alias textColor: noContacts.color
|
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
|
2021-07-13 07:56:18 +00:00
|
|
|
|
anchors.topMargin: Style.current.padding
|
2021-01-06 14:58:44 +00:00
|
|
|
|
onClicked: inviteFriendsPopup.open()
|
2020-12-11 20:38:10 +00:00
|
|
|
|
}
|
|
|
|
|
InviteFriendsPopup {
|
|
|
|
|
id: inviteFriendsPopup
|
|
|
|
|
}
|
|
|
|
|
}
|