status-desktop/ui/app/AppLayouts/Chat/components/NoFriendsRectangle.qml

34 lines
996 B
QML
Raw Normal View History

2020-12-11 20:38:10 +00:00
import QtQuick 2.13
import "../../../../imports"
import "../../../../shared"
import "../../../../shared/status"
2020-12-11 20:38:10 +00:00
Rectangle {
id: noContactsRect
width: 260
property string text: qsTr("You dont have any contacts yet. Invite your friends to start chatting.")
2020-12-11 20:38:10 +00:00
StyledText {
id: noContacts
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
font.pixelSize: 15
2020-12-11 20:38:10 +00:00
horizontalAlignment: Text.AlignHCenter
}
StatusButton {
2020-12-11 20:38:10 +00:00
//% "Invite friends"
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
onClicked: inviteFriendsPopup.open()
2020-12-11 20:38:10 +00:00
}
InviteFriendsPopup {
id: inviteFriendsPopup
}
}