2024-10-15 19:26:12 +00:00
|
|
|
|
import QtQuick 2.15
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-21 15:07:13 +00:00
|
|
|
|
|
2021-10-27 14:17:15 +00:00
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
2021-10-21 15:07:13 +00:00
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
2021-10-14 11:38:06 +00:00
|
|
|
|
import "../popups"
|
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
|
2022-07-25 15:07:19 +00:00
|
|
|
|
implicitWidth: 260
|
|
|
|
|
implicitHeight: visible ? 120 : 0
|
2022-01-28 08:19:49 +00:00
|
|
|
|
|
2022-04-04 11:26:30 +00:00
|
|
|
|
property string text: qsTr("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
|
2022-01-28 08:19:49 +00:00
|
|
|
|
|
2021-10-27 14:17:15 +00:00
|
|
|
|
StatusBaseText {
|
2020-12-11 20:38:10 +00:00
|
|
|
|
id: noContacts
|
2021-02-01 12:06:21 +00:00
|
|
|
|
text: noContactsRect.text
|
2021-10-27 14:17:15 +00:00
|
|
|
|
color: Theme.palette.baseColor1
|
2020-12-11 20:38:10 +00:00
|
|
|
|
anchors.top: parent.top
|
2024-10-15 19:26:12 +00:00
|
|
|
|
anchors.topMargin: Theme.padding
|
2020-12-11 20:38:10 +00:00
|
|
|
|
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 {
|
2022-04-04 11:26:30 +00:00
|
|
|
|
text: qsTr("Invite friends")
|
2020-12-11 20:38:10 +00:00
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
anchors.top: noContacts.bottom
|
2024-10-15 19:26:12 +00:00
|
|
|
|
anchors.topMargin: Theme.padding
|
2023-05-23 12:46:16 +00:00
|
|
|
|
onClicked: Global.openPopup(inviteFriendsPopup);
|
2020-12-11 20:38:10 +00:00
|
|
|
|
}
|
2023-05-23 12:46:16 +00:00
|
|
|
|
|
|
|
|
|
Component {
|
2020-12-11 20:38:10 +00:00
|
|
|
|
id: inviteFriendsPopup
|
2023-05-23 12:46:16 +00:00
|
|
|
|
InviteFriendsPopup {
|
2023-08-18 15:01:49 +00:00
|
|
|
|
destroyOnClose: true
|
2023-05-23 12:46:16 +00:00
|
|
|
|
}
|
2020-12-11 20:38:10 +00:00
|
|
|
|
}
|
|
|
|
|
}
|